Skip to content

Instantly share code, notes, and snippets.

@alistairjevans

alistairjevans/app.ino

Last active May 11, 2019
Embed
What would you like to do?
My First Arduino Program
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
You can’t perform that action at this time.