SHARE
TWEET

Untitled

a guest Dec 12th, 2019 96 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. int ledA = 0;
  2. int ledB = 1;
  3. int ledC = 2;
  4. int ledD = 3;
  5. int ledE = 4;
  6.  
  7. void setup() {
  8. pinMode ( ledA, OUTPUT);
  9. pinMode ( ledB, OUTPUT);
  10. pinMode ( ledC, OUTPUT);
  11. pinMode ( ledD, OUTPUT);
  12. pinMode ( ledE, OUTPUT);
  13.  
  14. }
  15.  
  16. void loop() {
  17. digitalWrite (ledD, HIGH);
  18. delay (500);
  19. digitalWrite (ledC, HIGH);
  20. delay (500);
  21. digitalWrite (ledB, HIGH);
  22. delay (500);
  23. digitalWrite (ledA, HIGH);
  24. delay (500);
  25. digitalWrite (ledE, HIGH);
  26. delay (500);
  27. digitalWrite (ledD, LOW);
  28. digitalWrite (ledC, LOW);
  29. digitalWrite (ledB, LOW);
  30. digitalWrite (ledA, LOW);
  31. digitalWrite (ledE, LOW);
  32. delay (500);
  33. digitalWrite (ledD, HIGH);
  34. digitalWrite (ledC, HIGH);
  35. digitalWrite (ledB, HIGH);
  36. digitalWrite (ledA, HIGH);
  37. digitalWrite (ledE, HIGH);
  38. delay (500);
  39. digitalWrite (ledD, LOW);
  40. digitalWrite (ledC, LOW);
  41. digitalWrite (ledB, LOW);
  42. digitalWrite (ledA, LOW);
  43. digitalWrite (ledE, LOW);
  44. delay (500);
  45. digitalWrite (ledD, HIGH);
  46. digitalWrite (ledC, HIGH);
  47. digitalWrite (ledB, HIGH);
  48. digitalWrite (ledA, HIGH);
  49. digitalWrite (ledE, HIGH);
  50. delay (500);
  51. digitalWrite (ledD, LOW);
  52. digitalWrite (ledC, LOW);
  53. digitalWrite (ledB, LOW);
  54. digitalWrite (ledA, LOW);
  55. digitalWrite (ledE, LOW);
  56. delay (500);
  57. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top