We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d75f10 commit 80ecec9Copy full SHA for 80ecec9
PyPortal_User_Interface/code.py
@@ -342,8 +342,8 @@ def switch_view(what_view):
342
else: # No temperature sensor
343
tempC = microcontroller.cpu.temperature
344
345
- tempF = round(tempC * 1.8 + 32)
346
- sensor_data.text = 'Touch: {}\nLight: {}\n Temp: {}°F'.format(touch, light, tempF)
+ tempF = tempC * 1.8 + 32
+ sensor_data.text = 'Touch: {}\nLight: {}\n Temp: {:.0f}°F'.format(touch, light, tempF)
347
348
# ------------- Handle Button Press Detection ------------- #
349
if touch: # Only do this if the screen is touched
0 commit comments