Skip to content

Instantly share code, notes, and snippets.

@hidsh
Created October 14, 2014 14:58
Show Gist options
  • Save hidsh/6ab1667d647ca0d89cc5 to your computer and use it in GitHub Desktop.
Save hidsh/6ab1667d647ca0d89cc5 to your computer and use it in GitHub Desktop.
led blink on arduino
#define LED_PIN 12
void setup() {
pinMode(LED_PIN, OUTPUT);
}
void loop() {
digitalWrite(LED_PIN, HIGH);
delay(500);
digitalWrite(LED_PIN, LOW);
delay(500);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment