Skip to content

Instantly share code, notes, and snippets.

@gestadieu
Created June 10, 2016 11:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gestadieu/87023ff7829b8789cc62699c782f2f39 to your computer and use it in GitHub Desktop.
Save gestadieu/87023ff7829b8789cc62699c782f2f39 to your computer and use it in GitHub Desktop.
Arduino/Genuino MKR1000 - LED Blink
/*
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