Skip to content

Instantly share code, notes, and snippets.

@tristanm
Forked from anonymous/digispark_flasher.ino
Created February 18, 2016 05:00
Show Gist options
  • Save tristanm/fbd3b3838583e883debc to your computer and use it in GitHub Desktop.
Save tristanm/fbd3b3838583e883debc 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