Skip to content

Commit 96125e1

Browse files
author
simonmonk
committed
pi examples
1 parent 7e0785e commit 96125e1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

raspberry_pi/01_meter.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ def update_readings(): # update fields with new temp and eCO2 readings
1919
# define the user interface
2020
Text(app, text="Wetness (%)", grid=[0,0], size=20)
2121
wetness_field = Text(app, text="-", grid=[1,0], size=100)
22-
Text(app, text="Temp (C)", grid=[0,1], size=10)
23-
temp_c_field = Text(app, text="-", grid=[1,1], size=100)
24-
Text(app, text="Humidity (%)", grid=[0,2], size=10)
25-
humidity_field = Text(app, text="-", grid=[1,2], size=100)
22+
Text(app, text="Temp (C)", grid=[0,1], size=20)
23+
temp_c_field = Text(app, text="-", grid=[1,1], size=50)
24+
Text(app, text="Humidity (%)", grid=[0,2], size=20)
25+
humidity_field = Text(app, text="-", grid=[1,2], size=50)
2626
t1.start() # start the thread that updates the readings
2727
app.display()

0 commit comments

Comments
 (0)