-
-
Save tristanm/fbd3b3838583e883debc to your computer and use it in GitHub Desktop.
Digispark Flasher
This file contains hidden or 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
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