Advertisement
Drakkheen

Untitled

Mar 3rd, 2021
778
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. int speed = 100;
  2.  
  3. int spalte[] = {8,7,6,5,4};
  4. int zeile[] = {13, 12, 11, 10, 9};
  5.  
  6. byte A [] = {B01100, B10010, B11110, B10010, B10010};
  7. byte B [] = {B11100, B10010, B11110, B10010, B11100};
  8. byte C [] = {B01110, B10000, B10000, B10000, B01110};
  9. byte D [] = {B11100, B10010, B10010, B10010, B11100};
  10. byte E [] = {B11110, B10000, B11100, B10000, B11110};
  11. byte F [] = {B11110, B10000, B11100, B10000, B10000};
  12. byte G [] = {B01110, B10000, B10110, B10010, B11110};
  13. byte H [] = {B10010, B10010, B11110, B10010, B10010};
  14. byte I [] = {B00100, B00100, B00100, B00100, B00100};
  15. byte J [] = {B00100, B00100, B00100, B10100, B11100};
  16. byte K [] = {B10010, B10100, B11000, B10100, B10010};
  17. byte L [] = {B10000, B10000, B10000, B10000, B11110};
  18. byte M [] = {B10001, B11011, B10101, B10001, B10001};
  19. byte N [] = {B10010, B11010, B10110, B10010, B10010};
  20. byte O [] = {B01100, B10010, B10010, B10010, B01100};
  21. byte P [] = {B11100, B10010, B10010, B11100, B10000};
  22. byte Q [] = {B01110, B10001, B10101, B10010, B01101};
  23. byte R [] = {B11100, B10010, B11100, B10010, B10010};
  24. byte S [] = {B11110, B10000, B11110, B00010, B11110};
  25. byte T [] = {B11111, B00100, B00100, B00100, B00100};
  26. byte U [] = {B10010, B10010, B10010, B10010, B01100};
  27. byte V [] = {B10001, B10001, B10001, B01010, B00100};
  28. byte W [] = {B10001, B10001, B10101, B10101, B01110};
  29. byte X [] = {B10010, B10010, B01100, B10010, B10010};
  30. byte Y [] = {B10001, B10001, B01110, B00100, B00100};
  31. byte Z [] = {B11110, B00010, B00100, B01000, B11110};
  32. byte EX [] = {B00000, B00000, B00000, B00000, B00000};
  33. byte ALL [] = {B11111, B11111, B11111, B11111, B11111};
  34. byte smile [] = {B01010, B00000, B00100, B10001, B01110};
  35. byte frown [] = {B10001, B00100, B00000, B01110, B10001};
  36.  
  37.  
  38. void setup() {
  39.  
  40.   for (int i = 4; i < 14; i++) {
  41.     pinMode(i, OUTPUT);
  42.   }
  43.  
  44. }
  45.  
  46. void loop() {
  47.   displaythis(F);
  48. }
  49.  
  50. void displaythis(byte buffer2[]) {
  51.   for (int a = 0; a <= 4; a++) {
  52.     digitalWrite(zeile[a], 1);
  53.     for (int i = 0; i < 5; i++) {
  54.       digitalWrite(spalte[i],  (buffer2[a]));
  55.       digitalWrite(spalte[i], 0);
  56.     }
  57.     digitalWrite(zeile[a], 0);
  58.   }
  59. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement