attiny85
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| attiny85 [2025/08/20 22:28] – ei5iyb | attiny85 [2025/08/23 21:55] (current) – ei5iyb | ||
|---|---|---|---|
| Line 12: | Line 12: | ||
| 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); | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | OLED - https:// | ||
| + | |||
| + | Sample code - https:// | ||
| + | |||
| + | {{: | ||
| + | |||
| + | {{ : | ||
| + | |||
| + | Building programmer | ||
| + | https:// | ||
| + | https:// | ||
| + | |||
attiny85.1755728934.txt.gz · Last modified: by ei5iyb
