Skip to content

Instantly share code, notes, and snippets.

@jchuahtacc
Created February 2, 2017 20:25
Show Gist options
  • Select an option

  • Save jchuahtacc/3cd351655018f464afddebbf97d6752a to your computer and use it in GitHub Desktop.

Select an option

Save jchuahtacc/3cd351655018f464afddebbf97d6752a to your computer and use it in GitHub Desktop.
#define BLUE 1
#define RED 2
void setup() {
pinMode(BLUE, OUTPUT);
pinMode(RED, OUTPUT);
}
void loop() {
digitalWrite(BLUE, HIGH);
digitalWrite(RED, LOW);
delay(1000);
digitalWrite(BLUE, LOW);
digitalWrite(RED, HIGH);
delay(1000);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment