Last active
July 7, 2021 20:03
-
-
Save atarp/cff4add66b429f64bfe7036848cb555f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define LED 0 //D2=pin 7 D1=pin6 D0=pin5 | |
void setup() { | |
pinMode(LED, OUTPUT); | |
} | |
void loop() { | |
digitalWrite(LED, HIGH); | |
delay(1000); | |
digitalWrite(LED, LOW); | |
delay(1000); | |
} | |
/* | |
* compile and load using some Arduino IDE: | |
* ./arduino \ | |
* --board digistump:avr:digispark-tiny \ | |
* --upload portable/sketchbook/Start/Start.ino | |
* | |
""" | |
2k2 | |
+--###----+ | |
| ___ | | |
USB 68R |--|° |--+- Vcc | |
D- ---###-+--| |- D2 | |
D+ ---###----| |- D1 // LED | |
|------|___|- D0 ----+>|--###--| | |
""" | |
insert line #build.path=/home/andreas/Downloads/arduino-nightly/build/ | |
into preferences.txt to keep e.g. the .hex file | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment