attiny85
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
attiny85 [2025/08/20 22:28] – created ei5iyb | attiny85 [2025/08/20 22:31] (current) – ei5iyb | ||
---|---|---|---|
Line 6: | Line 6: | ||
https:// | https:// | ||
+ | |||
+ | Random tutorials that got me there | ||
+ | |||
+ | https:// | ||
+ | |||
+ | https:// | ||
+ | |||
+ | |||
+ | Sample sketch with LED connected to pin 1 and GND | ||
+ | < | ||
+ | void setup() { | ||
+ | // Initialize the digital pin as an output | ||
+ | pinMode(0, OUTPUT); | ||
+ | Serial.begin(9600); | ||
+ | |||
+ | // if analog input pin 0 is unconnected, | ||
+ | // noise will cause the call to randomSeed() to generate | ||
+ | // different seed numbers each time the sketch runs. | ||
+ | // randomSeed() will then shuffle the random function. | ||
+ | randomSeed(analogRead(0)); | ||
+ | } | ||
+ | |||
+ | void loop() { | ||
+ | digitalWrite(0, | ||
+ | // delay(random(1500)); | ||
+ | delay(2000); | ||
+ | digitalWrite(0, | ||
+ | // | ||
+ | delay(1000); | ||
+ | } | ||
+ | </ | ||
+ |
attiny85.1755728892.txt.gz · Last modified: by ei5iyb