Created
June 10, 2016 11:07
-
-
Save gestadieu/87023ff7829b8789cc62699c782f2f39 to your computer and use it in GitHub Desktop.
Arduino/Genuino MKR1000 - LED Blink
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
/* | |
LED Blink | |
Turns on an LED on for one second, then off for one second, repeatedly. | |
*/ | |
// internal led connected on pin 6 on the MKR1000 | |
int PIN_LED = 6; | |
void setup() { | |
pinMode(PIN_LED, OUTPUT); | |
} | |
void loop() { | |
digitalWrite(PIN_LED, HIGH); | |
delay(1000); | |
digitalWrite(PIN_LED, LOW); | |
delay(1000); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment