Created
April 14, 2016 00:30
-
-
Save detik19/d14c4408aaf26211653c3194cb98d4d9 to your computer and use it in GitHub Desktop.
Start Digispark
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
// the setup routine runs once when you press reset: | |
void setup() { | |
// initialize the digital pin as an output. | |
pinMode(0, OUTPUT); //LED on Model B | |
pinMode(1, OUTPUT); //LED on Model A or Pro | |
} | |
// the loop routine runs over and over again forever: | |
void loop() { | |
digitalWrite(0, HIGH); // turn the LED on (HIGH is the voltage level) | |
digitalWrite(1, HIGH); | |
delay(1000); // wait for a second | |
digitalWrite(0, LOW); // turn the LED off by making the voltage LOW | |
digitalWrite(1, LOW); | |
delay(1000); // wait for a second | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment