Guest User

Untitled

a guest
Jan 20th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. /*
  2. multi-line comments can go here in between
  3. the symbols you see above and below
  4. */
  5. int A = 5;
  6. int B = 6;
  7.  
  8. // the setup function runs once when you press reset or power the board
  9. void setup() {
  10. // initialize digital pin 13 as an output.
  11. pinMode(A, OUTPUT);
  12. pinMode(B, OUTPUT);
  13.  
  14. }
  15.  
  16. // the loop function runs over and over again forever
  17. void loop() {
  18. digitalWrite(A, HIGH);
  19. delay(1000);
  20. digitalWrite(A, LOW);
  21. delay(1000);
  22.  
  23. digitalWrite(B, HIGH);
  24. delay(1000);
  25. digitalWrite(B, LOW);
  26. delay(1000); // 2 slashes allow a line of comment
  27.  
  28.  
  29. }
Add Comment
Please, Sign In to add comment