andy40185
Member level 5
Hi all,
I'm using keilc51 complier. I've encountered some problem about displaying some value to lcd.
If I have 2 floating point value(Temp=27.89, Humi=98.77), and use the following
function to display,is it possible? Should I change the float value to char? Have an other solution?
I've tried many times, please help!!
void WriteLCDdata(char i)
{
RS=1;
RW=0;
EN=1;
P1=i;
EN=0;
CheckBusy();
} /* WriteLCDdata */
void WriteLCDstring(count,MSG)
char count;
char MSG[];
{
char j;
for(j=0;j<count;j++)
WriteLCDdata(MSG[j]);
} /* WriteLCDstring */
Regards,
Andy
I'm using keilc51 complier. I've encountered some problem about displaying some value to lcd.
If I have 2 floating point value(Temp=27.89, Humi=98.77), and use the following
function to display,is it possible? Should I change the float value to char? Have an other solution?
I've tried many times, please help!!
void WriteLCDdata(char i)
{
RS=1;
RW=0;
EN=1;
P1=i;
EN=0;
CheckBusy();
} /* WriteLCDdata */
void WriteLCDstring(count,MSG)
char count;
char MSG[];
{
char j;
for(j=0;j<count;j++)
WriteLCDdata(MSG[j]);
} /* WriteLCDstring */
Regards,
Andy