unsigned short cols[7][32] = {
{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 },
{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 },
{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 },
{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 },
{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 },
{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 },
{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 }
};
void setpixel(char x, char y, short onc)
{
if(onc==1)cols[y][x]=1 ;else cols[y][x]=0;
}
// function to test a bit if its 1 or 0
char TestBit(unsigned char x, short i) {
return ((x >> i) & 1);
}
void scroll_up_letter(char lett,char step,char speed) {
char ch;
short temp[7][32] ;
short i;
short x;
ch=lett-32,
for(i=0;i<7;i++)
{
vdelay_ms(speed);
for(x=0;x<5;x++) {
if(Testbit(font_table[ch][i],x))
cols[i][x] =1;
}
cols[i][x]=cols[i+1][x];
cols[6][x]=0;
}
}