Skip to content

Instantly share code, notes, and snippets.

Created February 18, 2016 04:58
Show Gist options
  • Save anonymous/384d2d4c8ddc96a567ba to your computer and use it in GitHub Desktop.
Save anonymous/384d2d4c8ddc96a567ba to your computer and use it in GitHub Desktop.
Digispark Flasher
void setup() {
pinMode(1, OUTPUT);
}
void loop() {
for(int i = 20; i <= 255; i++) {
analogWrite(1, i);
delay(1);
}
for(int i = 255; i >= 20; i--) {
analogWrite(1, i);
delay(1);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment