AA9GG
New member
I have a dumb question. Base on this code from CFA10097.INO,
How does one display a number with a decimal point? I tried:
When I run it, it displays "Temp = ? Deg. F"
ideas???
Code:
FWo=EVE_PrintF(FWo,
x_points[i]+xoffset, //X coordinate
y_points[i]+yoffset, //Y coordinate
27, //Font
EVE_OPT_CENTER, //Options
"T[%d]@(%d,%d)", //"printf" style format string
i+1, //point number displayed as text
x_points[i], //X coordinate displayed as text
y_points[i]); //Y coordinate displayed as text
Code:
float temp_F;
temp_F = 32.1;
FWo=EVE_PrintF(FWo,
50, //X coordinate
50, //Y coordinate
27, //Font
EVE_OPT_CENTER, //Options
"Temp = %f Deg. F", temp_F); //display text
ideas???
Looking for additional LCD resources? Check out our LCD blog for the latest developments in LCD technology.