Hi, this is my code.
void msc(){
static char buf[7];
strcpy(menu.sbuf,"Temp:");
strcat(menu.sbuf,itoa((int)(SHT2x.GetTemperature()),buf,10));
strcat(menu.sbuf,"\nMoisture:"); //1st lcd line
strcat(menu.sbuf,itoa((int)(SHT2x.GetHumidity()),buf,10));
strcat(menu.sbuf,"\n");
menu.drawUsrScreen(menu.sbuf);
}
The code is part of MENWIZ's menu, it's the function of "User default screen ".
As show at idle time. In my project, it shows temperature and moisture at LCD.
My problem is how to show data in deimal instead of integer?
Have other code instead of "itoa()"?
Thank you.