Hello,
You can scroll the Smiley (left or right) by doing the following, in the main loop of the code:
while(1)
{
for(j=0;j<32;j++) // for scrolling 32 times
{
for(cnt=0; cnt<8; cnt++) // for Smiley
{
dataB = dataA[cnt];
datsend(address, dataB);
address = address+2;
}
// control the speed of scrolling
delay_ms(400);
// scroll the message left or right
address = address-2; // '-' for left shift, '+' for right shift, #2 means shift by 1 column
// clear the matrix by writing 00's
for(i=0;i<32;i++)
{
datsend(i,0x00);
}
}
}
Bookmarks