kirangowle
Member level 3
- Joined
- Apr 6, 2010
- Messages
- 65
- Helped
- 3
- Reputation
- 6
- Reaction score
- 3
- Trophy points
- 1,288
- Location
- Bangalore
- Activity points
- 1,632
Hello,
I am writing code for LED matrix which as 60 col * 7 Row(420 leds).
I have attached complete schematic of LED matrix as a reference.
I dont know how to refresh the display.
With respect to abv code i should get output someting like this
But actual i am getting as below:evil:
I am writing code for LED matrix which as 60 col * 7 Row(420 leds).
I have attached complete schematic of LED matrix as a reference.
I dont know how to refresh the display.
Code:
void main ()
{
clk=0;
Data=0;
OE=0;
OE=1;
while(1)
{
Data=1;
P1=0x7F; // 7F to glow single col LEDs(0111 1111)
clk=1;
delay(2);
clk=0;
Data=0;
//P1=0x00; // to glow single col LEDs(0000 0000)
clk=1;
delay(20);
clk=0;
Data=1;
P1=0x70; // 70 to glow single col LEDs(0111 0000)
clk=1;
delay(2);
clk=0;
for(z=0;z<59;z++)
{
Data=0;
//P1=0x00; // 7F to glow single col LEDs(0111 1111)
clk=1;
delay(20);
clk=0;
}
}
}
With respect to abv code i should get output someting like this
0 0 1
0 0 1
0 0 1
0 0 1 and it will be keep on scrolling from left to right
1 0 1
1 0 1
1 0 1
But actual i am getting as below:evil:
0 0 0
0 0 0
0 0 0
0 0 0 and it will be keep on scrolling from left to right
1 0 1
1 0 1
1 0 1