Last active
May 11, 2019 10:21
-
-
Save alistairjevans/704ea8221458e651814f6bce85a644d0 to your computer and use it in GitHub Desktop.
My First Arduino Program
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
void setup() | |
{ | |
// Configure the LED pin | |
pinMode(LED_BUILTIN, OUTPUT); | |
} | |
void loop() | |
{ | |
// Set the PIN to 'high' | |
digitalWrite(LED_BUILTIN, HIGH); | |
// Wait 1 second (1000ms) | |
delay(1000); | |
// Set the PIN to 'low' | |
digitalWrite(LED_BUILTIN, LOW); | |
// Wait again | |
delay(1000); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment