Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Temperature: Decimal place empty #19

Open
GeorgWolter opened this issue Jul 4, 2024 · 1 comment
Open

Temperature: Decimal place empty #19

GeorgWolter opened this issue Jul 4, 2024 · 1 comment

Comments

@GeorgWolter
Copy link

GeorgWolter commented Jul 4, 2024

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
Copy link
Author

GeorgWolter commented Jul 14, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant