Created
February 13, 2016 05:56
-
-
Save DarkLotus/74a52e4acdb619abf28e to your computer and use it in GitHub Desktop.
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() { | |
| // initialize digital pin 13 as an output. | |
| pinMode(1, OUTPUT); | |
| Serial.begin(74880); | |
| Serial.println("booted"); | |
| } | |
| // the loop function runs over and over again forever | |
| void loop() { | |
| Serial.println("loop\n"); | |
| blinkLED(1000); | |
| blinkLED(3000); | |
| blinkLED(1000); | |
| } | |
| void blinkLED(int delayMS) { | |
| digitalWrite(1, HIGH); // turn the LED on (HIGH is the voltage level) | |
| delay(delayMS); // wait for a second | |
| digitalWrite(1, LOW); // turn the LED off by making the voltage LOW | |
| delay(delayMS); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment