can the dot matrix help me to know how to write the scroll? this is my project homework.very urgent please.
No, the dot matrix does not have that wisdom.
Hoped this will help
const int col[8] = { 10, 11, A0, A1, A2, A3, A4, A5 };//L
const int row[8] = { 2, 3, 4, 5, 6, 7, 8, 9 };//H
byte ledBitmap[50][8] = {
B00000000,
B00000000,
B00000001,
B00000000,
B00000000,
B00000000,
B00000001,
B00000000,
B00000000,
B00000000,
B00000011,
B00000001,
B00000001,
B00000001,
B00000011,
B00000000,
B00000000,
B00000000,
B00000111,
B00000010,
B00000010,
B00000010,
B00000111,
B00000000,
B00000000,
B00000000,
B00001111,
B00000100,
B00000100,
B00000100,
B00001111,
B00000000,
B00000000,
B00000000,
B00011110,
B00001001,
B00001001,
B00001001,
B00011110,
B00000000,
B00000000,
B00000000,
B00111100,
B00010010,
B00010010,
B00010010,
B00111100,
B00000000,
B00000000,
B00000000,
B01111000,
B00100100,
B00100100,
B00100100,
B01111000,
B00000000,
B00000000,
B00000000,
B11110000,
B01001001,
B01001001,
B01001001,
B11110000,
B00000000,
B00000000,
B00000000,
B11100001,
B10010010,
B10010010,
B10010010,
B11100001,
B00000000,
B00000000,
B00000000,
B11000011,
B00100100,
B00100100,
B00100100,
B11000011,
B00000000,
B00000000,
B00000000,
B10000111,
B01001000,
B01001000,
B01001000,
B10000111,
B00000000,
B00000000,
B00000000,
B00001110,
B10010000,
B10010000,
B10010000,
B00001110,
B00000000,
B00000000,
B00000000,
B00011100,
B00100000,
B00100000,
B00100000,
B00011100,
B00000000,
B00000000,
B00000000,
B00111000,
B01000001,
B01000001,
B01000001,
B00111000,
B00000000,
B00000000,
B00000000,
B01110000,
B10000010,
B10000010,
B10000010,
B01110001,
B00000000,
B00000000,
B00000000,
B11100000,
B00000100,
B00000100,
B00000100,
B11100011,
B00000000,
B00000000,
B00000000,
B11000000,
B00001001,
B00001001,
B00001001,
B11000110,
B00000000,
B00000000,
B00000000,
B10000000,
B00010010,
B00010010,
B00010010,
B10001101,
B00000000,
B00000000,
B00000000,
B00000000,
B00100100,
B00100100,
B00100100,
B00011010,
B00000000,
B00000000,
B00000000,
B00000000,
B01001000,
B01001000,
B01001000,
B00110100,
B00000000,
B00000000,
B00000000,
B00000001,
B10010001,
B10010001,
B10010001,
B01101001,
B00000000,
B00000000,
B00000000,
B00000010,
B00100010,
B00100011,
B00100010,
B11010011,
B00000000,
B00000000,
B00000000,
B00000100,
B10000100,
B10000110,
B10000101,
B01000110,
B00000000,
B00000000,
B00000000,
B00001000,
B00001000,
B00001100,
B00001010,
B10001100,
B00000000,
B00000000,
B00000000,
B00010000,
B00010000,
B00011000,
B00010100,
B00011000,
B00000000,
B00000000,
B00000000,
B00100000,
B00100001,
B00110001,
B00101001,
B00110000,
B00000000,
B00000000,
B00000000,
B01000001,
B01000010,
B01100011,
B01010010,
B01100001,
B00000000,
B00000000,
B00000000,
B10000011,
B10000100,
B11000111,
B10100100,
B11000011,
B00000000,
B00000000,
B00000000,
B00000110,
B00001001,
B10001111,
B01001000,
B10000110,
B00000000,
B00000000,
B00000000,
B00001100,
B00010010,
B00011110,
B10010000,
B00001100,
B00000000,
B00000000,
B00000000,
B00011000,
B00100100,
B00111100,
B00100000,
B00011000,
B00000000,
B00000000,
B00000000,
B00110000,
B01001000,
B01111000,
B01000000,
B00110000,
B00000000,
B00000000,
B00000000,
B01100000,
B10010000,
B11110000,
B10000000,
B01100000,
B00000000,
};
void setup() {
for (int i = 0; i < 8; i++) {
pinMode(row[i], OUTPUT);
pinMode(col[i], OUTPUT);
digitalWrite(col[i], HIGH);
}
}
void loop() {
for (int c = 0; c < 33; c++) {
pattern_1(c, 5);
}
}
void pattern_1(int bitmapNo, int duration) {
for (duration; duration > 0; duration--) {
for (int k = 0; k < 8; k++) {
for (int j = 0; j < 8; j++) {
digitalWrite(col[j], bitRead(ledBitmap[bitmapNo][k], j));
}
digitalWrite(row[k], HIGH);
delay(1);
digitalWrite(row[k], LOW);
delay(2);
}
}
}