document.write('
Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. int G=2;
  2. int F=3;
  3. int A=4;
  4. int B=5;
  5. int DP=6;
  6. int C=7;
  7. int D=8;
  8. int E=9;
  9.  
  10. void setup(){
  11. pinMode(G, OUTPUT);
  12. pinMode(F, OUTPUT);
  13. pinMode(A, OUTPUT);
  14. pinMode(B, OUTPUT);
  15. pinMode(E, OUTPUT);
  16. pinMode(D, OUTPUT);
  17. pinMode(C, OUTPUT);
  18. pinMode(DP, OUTPUT);
  19. }
  20.  
  21. void zero(){
  22. digitalWrite(G, LOW);
  23. digitalWrite(F, HIGH);
  24. digitalWrite(A, HIGH);
  25. digitalWrite(B, HIGH);
  26. digitalWrite(E, HIGH);
  27. digitalWrite(D, HIGH);
  28. digitalWrite(C, HIGH);
  29. digitalWrite(DP, LOW);
  30. }
  31. void uno(){
  32. digitalWrite(G, LOW);
  33. digitalWrite(F, LOW);
  34. digitalWrite(A, LOW);
  35. digitalWrite(B, HIGH);
  36. digitalWrite(E, LOW);
  37. digitalWrite(D, LOW);
  38. digitalWrite(C, HIGH);
  39. digitalWrite(DP, LOW);
  40. }
  41. void due(){
  42. digitalWrite(G, HIGH);
  43. digitalWrite(F, LOW);
  44. digitalWrite(A, HIGH);
  45. digitalWrite(B, HIGH);
  46. digitalWrite(E, HIGH);
  47. digitalWrite(D, HIGH);
  48. digitalWrite(C, LOW);
  49. digitalWrite(DP, LOW);
  50. }
  51. void tre(){
  52. digitalWrite(G, HIGH);
  53. digitalWrite(F, LOW);
  54. digitalWrite(A, HIGH);
  55. digitalWrite(B, HIGH);
  56. digitalWrite(E, LOW);
  57. digitalWrite(D, HIGH);
  58. digitalWrite(C, HIGH);
  59. digitalWrite(DP, LOW);
  60. }
  61. void quattro(){
  62. digitalWrite(G, HIGH);
  63. digitalWrite(F, HIGH);
  64. digitalWrite(A, LOW);
  65. digitalWrite(B, HIGH);
  66. digitalWrite(E, LOW);
  67. digitalWrite(D, LOW);
  68. digitalWrite(C, HIGH);
  69. digitalWrite(DP, LOW);
  70. }
  71. void cinque(){
  72. digitalWrite(G, HIGH);
  73. digitalWrite(F, HIGH);
  74. digitalWrite(A, HIGH);
  75. digitalWrite(B, LOW);
  76. digitalWrite(E, LOW);
  77. digitalWrite(D, HIGH);
  78. digitalWrite(C, HIGH);
  79. digitalWrite(DP, LOW);
  80. }
  81. void six(){
  82. digitalWrite(G, HIGH);
  83. digitalWrite(F, HIGH);
  84. digitalWrite(A, HIGH);
  85. digitalWrite(B, LOW);
  86. digitalWrite(E, HIGH);
  87. digitalWrite(D, HIGH);
  88. digitalWrite(C, HIGH);
  89. digitalWrite(DP, LOW);
  90. }
  91. void sette(){
  92. digitalWrite(G, LOW);
  93. digitalWrite(F, LOW);
  94. digitalWrite(A, HIGH);
  95. digitalWrite(B, HIGH);
  96. digitalWrite(E, LOW);
  97. digitalWrite(D, LOW);
  98. digitalWrite(C, HIGH);
  99. digitalWrite(DP, LOW);
  100. }
  101. void otto(){
  102. digitalWrite(G, HIGH);
  103. digitalWrite(F, HIGH);
  104. digitalWrite(A, HIGH);
  105. digitalWrite(B, HIGH);
  106. digitalWrite(E, HIGH);
  107. digitalWrite(D, HIGH);
  108. digitalWrite(C, HIGH);
  109. digitalWrite(DP, LOW);
  110. }
  111. void nove(){
  112. digitalWrite(G, HIGH);
  113. digitalWrite(F, HIGH);
  114. digitalWrite(A,HIGH);
  115. digitalWrite(B, HIGH);
  116. digitalWrite(E, LOW);
  117. digitalWrite(D, HIGH);
  118. digitalWrite(C, HIGH);
  119. digitalWrite(DP, LOW);
  120. }
  121.  
  122. void loop(){
  123. uno();
  124. delay(500);
  125. due();
  126. delay(500);
  127. tre();
  128. delay(500);
  129. }
');