Skip to content

Instantly share code, notes, and snippets.

@alistairjevans
Last active May 11, 2019 10:21
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 alistairjevans/704ea8221458e651814f6bce85a644d0 to your computer and use it in GitHub Desktop.
Save alistairjevans/704ea8221458e651814f6bce85a644d0 to your computer and use it in GitHub Desktop.
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