Skip to content

Instantly share code, notes, and snippets.

@atarp
Last active July 7, 2021 20:03
Show Gist options
  • Save atarp/cff4add66b429f64bfe7036848cb555f to your computer and use it in GitHub Desktop.
Save atarp/cff4add66b429f64bfe7036848cb555f to your computer and use it in GitHub Desktop.
#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