You code is not working Also when i remove the * 2, the result doesn't remain the same.
void ShowBars(unsigned char data){
unsigned char i,d;
switch(data){
case 0:
data = '0';
break;
case 1:
data = '1';
break;
case 2:
data = '2';
break;
case 3:
data = '3';
break;
case 4:
data = '4';
break;
case 5:
data = '5';
break;
case 6:
data = '6';
break;
case 7:
data = '7';
break;
case 8:
data = '8';
break;
case 9:
data = '9';
break;
case 10:
data = ':';
break;
}
Pommie can you please kindly send me the library files you are using. Also the controller name of your GLCD. I want to test this on proteus. In my one year experience with Proteus, its never deceived me once from the actual output in hardware.