Advertisement
Guest User

Untitled

a guest
Feb 17th, 2020
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.16 KB | None | 0 0
  1.  
  2.  
  3. // the setup function runs once when you press reset or power the board
  4. void setup() {
  5. // initialize digital pin LED_BUILTIN as an output.
  6. pinMode(LED_BUILTIN, OUTPUT);
  7.  
  8. pinMode(2, OUTPUT);
  9. pinMode(3, OUTPUT);
  10.  
  11. pinMode(5, OUTPUT);
  12. pinMode(6, OUTPUT);
  13. }
  14.  
  15. // the loop function runs over and over again forever
  16. void loop() {
  17. digitalWrite(LED_BUILTIN, HIGH); // turn the LED on (HIGH is the voltage level)
  18. delay(1000); // wait for a second
  19. digitalWrite(LED_BUILTIN, LOW); // turn the LED off by making the voltage LOW
  20. delay(1000); // wait for a second
  21.  
  22. digitalWrite(3, HIGH); // turn the LED on (HIGH is the voltage level)
  23. delay(1000); // wait for a second
  24. digitalWrite(3, LOW); // turn the LED off by making the voltage LOW
  25. delay(1000); // wait for a second
  26.  
  27. digitalWrite(5, HIGH); // turn the LED on (HIGH is the voltage level)
  28. delay(1000); // wait for a second
  29. digitalWrite(5, LOW); // turn the LED off by making the voltage LOW
  30. delay(1000); // wait for a second
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement