VolosR / TTGOWeatherStation

131 stars 59 forks source link

Temperature: Decimal place empty #19

Open GeorgWolter opened 3 months ago

GeorgWolter commented 3 months ago

I very much like this project and the UI / display design is just nice.

Pls. see the photo: After the dot in TEMP there is no value. Just empty. On the photo "16.".

And it would be great to have the battery-level on the display. Maybe instead of BRIGHT. IMG_3736

GeorgWolter commented 3 months ago

Here is the updated code that limits the temperature to one decimal place / actually displays it. In the loop function, change this line:

tft.println(tmp);

into:

tft.println(tmp.substring(0, tmp.indexOf('.') + 2));

DigitFix