Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Play different LED depending on value of 'counter'
- if(counter % 2 == 0)
- {
- digitalWrite(ledPin1, HIGH);
- delay(duration);
- digitalWrite(ledPin1, LOW);
- }else
- {
- digitalWrite(ledPin2, HIGH);
- delay(duration);
- digitalWrite(ledPin2, LOW);
- }
- counter++;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement