Operácie

ATtiny: Rozdiel medzi revíziami

Z SensorWiki

Riadok 70: Riadok 70:
 
Na koniec:
 
Na koniec:
 
* https://github.com/MCUdude/MightyCore - moznost Arduino programovania pre ATmega16 a 32
 
* https://github.com/MCUdude/MightyCore - moznost Arduino programovania pre ATmega16 a 32
 +
 +
 +
<code lang="arduino">
 +
#define LEDpin 4  //aby nekolidovalo s programatorom, takto sa da trvale nechat pripojeny
 +
 +
void setup() {
 +
  // initialize digital pin LED_BUILTIN as an output.
 +
  pinMode(LEDpin, OUTPUT);
 +
}
 +
 +
// the loop function runs over and over again forever
 +
void loop() {
 +
  digitalWrite(LEDpin, HIGH);  // turn the LED on (HIGH is the voltage level)
 +
  delay(100);                      // wait for a second
 +
  digitalWrite(LEDpin, LOW);    // turn the LED off by making the voltage LOW
 +
  delay(1000);                      // wait for a second
 +
}
 +
</code>

Verzia zo dňa a času 16:45, 13. február 2023

Rychly zoznam projektov a stranok k programovaniu ATtiny (vid aj projekty DTV)


Strasne vela navodov je na strankach Roba Ulbrichta https://www.arduinoslovakia.eu/ Napriklad:


Nelineárna citlivosť ľudského oka

SparkFun

Technoblogy


Dalsie:


Problemy

Fuses

Na koniec:


  1. define LEDpin 4 //aby nekolidovalo s programatorom, takto sa da trvale nechat pripojeny

void setup() {

 // initialize digital pin LED_BUILTIN as an output.
 pinMode(LEDpin, OUTPUT);

}

// the loop function runs over and over again forever void loop() {

 digitalWrite(LEDpin, HIGH);   // turn the LED on (HIGH is the voltage level)
 delay(100);                       // wait for a second
 digitalWrite(LEDpin, LOW);    // turn the LED off by making the voltage LOW
 delay(1000);                       // wait for a second

}