File tree Expand file tree Collapse file tree
PyPortal_Azure_Plant_Monitor Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -36,7 +36,6 @@ def __init__(self, is_celsius=True):
3636 self ._cwd = cwd
3737 self .set_icon (self ._cwd + "/images/azure_splash.bmp" )
3838
39- def show_text (self ):
4039 print ('loading fonts...' )
4140 glyphs = b'0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-,.: '
4241 data_glyphs = b'012345678-,.:/FC'
@@ -77,9 +76,9 @@ def show_text(self):
7776 self .azure_status_text .y = 225
7877 self ._text_group .append (self .azure_status_text )
7978
79+ def show_text (self ):
8080 board .DISPLAY .show (self ._text_group )
8181
82-
8382 def display_azure_status (self , status_text ):
8483 """Displays the system status on the PyPortal
8584 :param str status_text: Description of Azure IoT status
Original file line number Diff line number Diff line change 2323import azure_gfx_helper
2424
2525# init. graphics helper
26- gfx = azure_gfx_helper .Azure_GFX (is_celsius = True )
26+ gfx = azure_gfx_helper .Azure_GFX (is_celsius = True )
2727
2828# Get wifi details and more from a secrets.py file
2929try :
7878 # display soil sensor values on pyportal
7979 gfx .display_moisture (moisture_level )
8080 gfx .display_temp (temperature )
81-
81+
8282 print ('Sending data to Azure' )
8383 gfx .display_azure_status ('Sending data...' )
8484
You can’t perform that action at this time.
0 commit comments