Skip to content

Instantly share code, notes, and snippets.

@msraynsford
Last active April 30, 2025 19:36
Show Gist options
  • Save msraynsford/525943be0e1547850c545960a04a8427 to your computer and use it in GitHub Desktop.
Save msraynsford/525943be0e1547850c545960a04a8427 to your computer and use it in GitHub Desktop.
void setup() {
pinMode(2, OUTPUT); // Initialise the LED pin as an output
}
void loop() {
digitalWrite(2, LOW); // Turn the LED on
delay(1000); // Wait for a second
digitalWrite(2, HIGH); // Turn the LED off
delay(1000); // Wait for a second
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment