Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void setup() {
- pinMode(1, OUTPUT); //Tells the arduino that something is here
- pinMode(2, OUTPUT);
- pinMode(3, OUTPUT);
- }
- void loop() {
- digitalWrite(1, HIGH); //HIGH=Power On
- digitalWrite(2, LOW); //LOW=Power OFF
- digitalWrite(3, LOW);
- delay(500);
- digitalWrite(1, LOW);
- digitalWrite(2, HIGH);
- digitalWrite(3, LOW);
- delay(500);
- digitalWrite(1, LOW);
- digitalWrite(2, LOW);
- digitalWrite(3, HIGH);
- delay(500);
- digitalWrite(1, HIGH);
- digitalWrite(2, HIGH);
- digitalWrite(3, HIGH);
- delay(500);
- digitalWrite(1, LOW);
- digitalWrite(2, LOW);
- digitalWrite(3, LOW);
- delay(500);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement