Float to LCD

General discussion on mikroC.
Post Reply
Author
Message
Tore
Posts: 18
Joined: 21 Feb 2005 20:15

Float to LCD

#1 Post by Tore » 21 May 2005 21:26

I have a floating variabel that i want to present on the LCD. Is there anyone that know a easy way to do this.
I am putting a floating variabel inn to EEPROM, and when I am reading it out I want to present it on LCD.
if (Ps2_Key_Read(&keydata, &special, &down)) {
if (keydata <=57 && keydata >=48 && i<7 && down==1
|| keydata==44) {
i++;
xtemp=((keydata-48)/2.2)+48;
EEprom_write(i,xtemp);
mydelay_ms();
tc = EEprom_read(i);
LCD_out(1,i,tc);
Delay_ms(1000);
}
Best regards Tore

Post Reply

Return to “mikroC General”