Created
October 7, 2012 16:33
-
-
Save mitsuruog/3848847 to your computer and use it in GitHub Desktop.
Arduino cross flashing LED
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define LED_PIN1 10 | |
#define LED_PIN2 9 | |
void setup(){ | |
pinMode(LED_PIN1, OUTPUT); | |
pinMode(LED_PIN2, OUTPUT); | |
} | |
void loop(){ | |
digitalWrite(LED_PIN1, HIGH); | |
digitalWrite(LED_PIN2, LOW); | |
delay(500); | |
digitalWrite(LED_PIN2, HIGH); | |
digitalWrite(LED_PIN1, LOW); | |
delay(500); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment