Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void setup() {
- pinMode(11, OUTPUT); //Initilizes pin 11 as an output
- pinMode(12, OUTPUT); //Initilizes pin 12 as an output
- digitalWrite(11, HIGH); // set the LED on
- delay(1000); // wait for a second
- digitalWrite(11, LOW); // set the LED off
- delay(1000); // wait for a second
- digitalWrite(11, HIGH); // set the LED on
- delay(1000); // wait for a second
- digitalWrite(11, LOW); // set the LED off
- delay(1000); // wait for a second
- digitalWrite(11, HIGH); // set the LED on
- delay(1000); // wait for a second
- digitalWrite(11, LOW); // set the LED off
- delay(1000); // wait for a second
- digitalWrite(11, HIGH); // set the LED on
- delay(1000); // wait for a second
- digitalWrite(11, LOW); // set the LED off
- delay(1000); // wait for a second
- digitalWrite(11, HIGH); // set the LED on
- delay(1000); // wait for a second
- digitalWrite(11, LOW); // set the LED off
- delay(1000); // wait for a second
- digitalWrite(11, LOW); // turns bothe LED's off so it looks right
- digitalWrite(12, LOW);
- delay(1000);
- }
- void loop() {
- digitalWrite(11, HIGH); // set LED 1 on
- digitalWrite(12, LOW); // set LED 2 off
- delay(1000); // wait for a second
- digitalWrite(11, LOW); // set LED 1 off
- digitalWrite(12, HIGH); // set LED 2 on
- delay(1000); // wait for a second
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement