Advertisement
Guest User

Arduino Sketch

a guest
May 2nd, 2015
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 1.09 KB | None | 0 0
  1. void setup() {
  2.   // put your setup code here, to run once:
  3. pinMode(2,OUTPUT);
  4. pinMode(3,OUTPUT);
  5. pinMode(4,OUTPUT);
  6. pinMode(5,OUTPUT);
  7. pinMode(6,OUTPUT);
  8. pinMode(7,OUTPUT);
  9. pinMode(8,OUTPUT);
  10. }
  11.  
  12. void loop() {
  13.   // put your main code here, to run repeatedly:
  14.  
  15. digitalWrite(2,HIGH);
  16. delay(50);
  17. digitalWrite(3,HIGH);
  18. delay(50);
  19. digitalWrite(4,HIGH);
  20. delay(50);
  21. digitalWrite(5,HIGH);
  22. delay(50);
  23. digitalWrite(6,HIGH);
  24. delay(50);
  25. digitalWrite(7,HIGH);
  26. delay(50);
  27. digitalWrite(8,HIGH);
  28. delay(50);
  29. digitalWrite(9,HIGH);
  30. delay(50);
  31. digitalWrite(10,HIGH);
  32. delay(50);
  33. digitalWrite(11,HIGH);
  34. delay(50);
  35. digitalWrite(12,HIGH);
  36. delay(50);
  37. digitalWrite(13,HIGH);
  38. delay(50);
  39. digitalWrite(2,LOW);
  40. delay(50);
  41. digitalWrite(3,LOW);
  42. delay(50);
  43. digitalWrite(4,LOW);
  44. delay(50);
  45. digitalWrite(5,LOW);
  46. delay(50);
  47. digitalWrite(6,LOW);
  48. delay(50);
  49. digitalWrite(7,LOW);
  50. delay(50);
  51. digitalWrite(8,LOW);
  52. delay(50);
  53. digitalWrite(9,LOW);
  54. delay(50);
  55. digitalWrite(10,LOW);
  56. delay(50);
  57. digitalWrite(11,LOW);
  58. delay(50);
  59. digitalWrite(12,LOW);
  60. delay(50);
  61. digitalWrite(13,LOW);
  62. delay(50);
  63.  
  64. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement