Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int speed = 100;
- int spalte[] = {8,7,6,5,4};
- int zeile[] = {13, 12, 11, 10, 9};
- byte A [] = {B01100, B10010, B11110, B10010, B10010};
- byte B [] = {B11100, B10010, B11110, B10010, B11100};
- byte C [] = {B01110, B10000, B10000, B10000, B01110};
- byte D [] = {B11100, B10010, B10010, B10010, B11100};
- byte E [] = {B11110, B10000, B11100, B10000, B11110};
- byte F [] = {B11110, B10000, B11100, B10000, B10000};
- byte G [] = {B01110, B10000, B10110, B10010, B11110};
- byte H [] = {B10010, B10010, B11110, B10010, B10010};
- byte I [] = {B00100, B00100, B00100, B00100, B00100};
- byte J [] = {B00100, B00100, B00100, B10100, B11100};
- byte K [] = {B10010, B10100, B11000, B10100, B10010};
- byte L [] = {B10000, B10000, B10000, B10000, B11110};
- byte M [] = {B10001, B11011, B10101, B10001, B10001};
- byte N [] = {B10010, B11010, B10110, B10010, B10010};
- byte O [] = {B01100, B10010, B10010, B10010, B01100};
- byte P [] = {B11100, B10010, B10010, B11100, B10000};
- byte Q [] = {B01110, B10001, B10101, B10010, B01101};
- byte R [] = {B11100, B10010, B11100, B10010, B10010};
- byte S [] = {B11110, B10000, B11110, B00010, B11110};
- byte T [] = {B11111, B00100, B00100, B00100, B00100};
- byte U [] = {B10010, B10010, B10010, B10010, B01100};
- byte V [] = {B10001, B10001, B10001, B01010, B00100};
- byte W [] = {B10001, B10001, B10101, B10101, B01110};
- byte X [] = {B10010, B10010, B01100, B10010, B10010};
- byte Y [] = {B10001, B10001, B01110, B00100, B00100};
- byte Z [] = {B11110, B00010, B00100, B01000, B11110};
- byte EX [] = {B00000, B00000, B00000, B00000, B00000};
- byte ALL [] = {B11111, B11111, B11111, B11111, B11111};
- byte smile [] = {B01010, B00000, B00100, B10001, B01110};
- byte frown [] = {B10001, B00100, B00000, B01110, B10001};
- void setup() {
- for (int i = 4; i < 14; i++) {
- pinMode(i, OUTPUT);
- }
- }
- void loop() {
- displaythis(F);
- }
- void displaythis(byte buffer2[]) {
- for (int a = 0; a <= 4; a++) {
- digitalWrite(zeile[a], 1);
- for (int i = 0; i < 5; i++) {
- digitalWrite(spalte[i], (buffer2[a]));
- digitalWrite(spalte[i], 0);
- }
- digitalWrite(zeile[a], 0);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement