We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 92bd7ab commit e6db8d7Copy full SHA for e6db8d7
1 file changed
PyPortal_Azure_Plant_Monitor/code.py
@@ -22,6 +22,9 @@
22
# gfx helper
23
import azure_gfx_helper
24
25
+# init. graphics helper
26
+gfx = azure_gfx_helper.Azure_GFX(False)
27
+
28
# Get wifi details and more from a secrets.py file
29
try:
30
from secrets import secrets
@@ -61,8 +64,7 @@
61
64
# Connect to Azure IoT Central
62
65
device.connect()
63
66
-# init. graphics helper
-gfx = azure_gfx_helper.Azure_GFX(False)
67
+gfx.show_text()
68
69
while True:
70
@@ -72,7 +74,8 @@
72
74
temperature = ss.get_temp()
73
75
# display soil sensor values on pyportal
76
gfx.display_moisture(moisture_level)
- temperature = gfx.display_temp(temperature)
77
+ gfx.display_temp(temperature)
78
79
print('Sending data to Azure')
80
gfx.display_azure_status('Sending data...')
81
0 commit comments