Skip to content

Instantly share code, notes, and snippets.

@RodrigoSC
Created February 18, 2017 19:40
Show Gist options
  • Save RodrigoSC/fa77e03cceb3aef0002ab1b649cd975b to your computer and use it in GitHub Desktop.
Save RodrigoSC/fa77e03cceb3aef0002ab1b649cd975b to your computer and use it in GitHub Desktop.
#define LED1_PIN 6
#define LED2_PIN 7
void setup() {
pinMode(LED1_PIN, OUTPUT);
pinMode(LED2_PIN, OUTPUT);
}
void loop() {
digitalWrite(LED1_PIN, HIGH);
digitalWrite(LED2_PIN, LOW);
delay(1000);
digitalWrite(LED2_PIN, HIGH);
digitalWrite(LED1_PIN, LOW);
delay(1000);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment