SHARE
TWEET

Untitled

a guest Jun 19th, 2017 49 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. void setup() {
  2.   // initialize digital pin LED_BUILTIN as an output.
  3.   pinMode(1, OUTPUT);
  4.   pinMode(2, OUTPUT);
  5.   pinMode(3, OUTPUT);
  6. }
  7.  
  8. // the loop function runs over and over again forever
  9. void loop()                      
  10. {
  11. digitalWrite(1, HIGH);
  12. delay(500);
  13. digitalWrite(2, HIGH);
  14. delay(500);
  15. digitalWrite(1, LOW);
  16. digitalWrite(3, HIGH);
  17. delay(500);
  18. digitalWrite(2, LOW);
  19. digitalWrite(1, HIGH);
  20. delay(500);
  21. digitalWrite(3, LOW);
  22. }
RAW Paste Data
Pastebin PRO Summer Special!
Get 40% OFF on Pastebin PRO accounts!
Top