Guest User

Untitled

a guest
Oct 23rd, 2019
56
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. void setup() {
  2. pinMode(2, OUTPUT);
  3. pinMode(3, OUTPUT);
  4. pinMode(4, OUTPUT);
  5. pinMode(5, OUTPUT);
  6. pinMode(6, OUTPUT);
  7. pinMode(7, OUTPUT);
  8. pinMode(8, OUTPUT);
  9. pinMode(9, OUTPUT);
  10. digitalWrite(9, 1); // start with the "dot" off
  11. }
  12.  
  13. void loop() {
  14. digitalWrite(2, 0);
  15. digitalWrite(3, 1);
  16. digitalWrite(4, 1);
  17. digitalWrite(5, 1);
  18. digitalWrite(6, 1);
  19. digitalWrite(7, 1);
  20. digitalWrite(8, 0);
  21. delay(1000);
  22. digitalWrite(2, 1);
  23. digitalWrite(3, 1);
  24. digitalWrite(4, 1);
  25. digitalWrite(5, 1);
  26. digitalWrite(6, 1);
  27. digitalWrite(7, 1);
  28. digitalWrite(8, 1);
  29. delay(1000);
  30. digitalWrite(2, 1);
  31. digitalWrite(3, 0);
  32. digitalWrite(4, 1);
  33. digitalWrite(5, 1);
  34. digitalWrite(6, 1);
  35. digitalWrite(7, 1);
  36. digitalWrite(8, 0);
  37. delay(1000);
  38. digitalWrite(2, 1);
  39. digitalWrite(3, 1);
  40. digitalWrite(4, 1);
  41. digitalWrite(5, 1);
  42. digitalWrite(6, 1);
  43. digitalWrite(7, 1);
  44. digitalWrite(8, 1);
  45. delay(1000);
  46. digitalWrite(2, 1);
  47. digitalWrite(3, 1);
  48. digitalWrite(4, 0);
  49. digitalWrite(5, 1);
  50. digitalWrite(6, 1);
  51. digitalWrite(7, 1);
  52. digitalWrite(8, 0);
  53. delay(1000);
  54. digitalWrite(2, 1);
  55. digitalWrite(3, 1);
  56. digitalWrite(4, 1);
  57. digitalWrite(5, 1);
  58. digitalWrite(6, 1);
  59. digitalWrite(7, 1);
  60. digitalWrite(8, 1);
  61. delay(1000);
  62. digitalWrite(2, 1);
  63. digitalWrite(3, 1);
  64. digitalWrite(4, 1);
  65. digitalWrite(5, 0);
  66. digitalWrite(6, 1);
  67. digitalWrite(7, 1);
  68. digitalWrite(8, 0);
  69. delay(1000);
  70. digitalWrite(2, 1);
  71. digitalWrite(3, 1);
  72. digitalWrite(4, 1);
  73. digitalWrite(5, 1);
  74. digitalWrite(6, 1);
  75. digitalWrite(7, 1);
  76. digitalWrite(8, 1);
  77. delay(1000);
  78. digitalWrite(2, 1);
  79. digitalWrite(3, 1);
  80. digitalWrite(4, 1);
  81. digitalWrite(5, 1);
  82. digitalWrite(6, 0);
  83. digitalWrite(7, 1);
  84. digitalWrite(8, 0);
  85. delay(1000);
  86. digitalWrite(2, 1);
  87. digitalWrite(3, 1);
  88. digitalWrite(4, 1);
  89. digitalWrite(5, 1);
  90. digitalWrite(6, 1);
  91. digitalWrite(7, 1);
  92. digitalWrite(8, 1);
  93. delay(1000);
  94. digitalWrite(2, 1);
  95. digitalWrite(3, 1);
  96. digitalWrite(4, 1);
  97. digitalWrite(5, 1);
  98. digitalWrite(6, 1);
  99. digitalWrite(7, 0);
  100. digitalWrite(8, 0);
  101. delay(1000);
  102. digitalWrite(2, 1);
  103. digitalWrite(3, 1);
  104. digitalWrite(4, 1);
  105. digitalWrite(5, 1);
  106. digitalWrite(6, 1);
  107. digitalWrite(7, 1);
  108. digitalWrite(8, 1);
  109. delay(1000);
  110. }
RAW Paste Data