I want to output the string "LED GAME" as indicated in picture . But in Dot matrix , there are only 16 + 16 = 32 pins . is there any way to print a string from avr to dotmatrix ?
The leftmost pin of dot matrix on the opposite site of the label "2088BH-B" is pin 1 .
You can get a complete idea from the two following picture .
Hope this will help you a lot . you can also try the following code which is written for showing 9 in dot matrix ( compiler: micro-C)
void main()
{
DDRB = 0b11111111;
DDRC = 0b11111111;
while(1)
{
PORTB=0b00000000; // 1
PORTC=0b10000000;
Delay_us(5);
PORTB=0b00000000; //2
PORTC=0b01000000;
Delay_us(5);
PORTB=0b00000000; //3
PORTC=0b00100000;
Delay_us(5);
PORTB=0b00000000; //4
PORTC=0b00010000;
Delay_us(5);
PORTB=0b10011110; // 5
PORTC=0b00001000;
Delay_us(5);
PORTB=0b10010010; //6
PORTC=0b00000100;
Delay_us(5);
PORTB=0b10010010; //7
PORTC=0b00000010;
Delay_us(5);
PORTB=0b11111110; //8
PORTC=0b00000001;
Delay_us(5);
}
}