AtomSoft
Well-Known Member
here it is better yet:
Code:
void ShowBars(unsigned char data){
unsigned char i,d;
for(i=0;i<14;i++){
d=FontBars[(data)][i];
if(d!=0x55){
GLCD_Write_Data(d);
MoveRight();
}
}
GLCD_Write_Data(0xff);
MoveRight();
}
//call like:
SetPos(112,58);
ShowBars(3);
SetPos(112,50);
ShowBars(6);
SetPos(112,42);
ShowBars(8);
SetPos(112,34);
ShowBars(10);