Skip to content

Commit 70c7c36

Browse files
committed
Tidying
1 parent 6ae0de4 commit 70c7c36

2 files changed

Lines changed: 2 additions & 5 deletions

File tree

PyPortal_Azure_Plant_Monitor/azure_gfx_helper.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff 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'

PyPortal_Azure_Plant_Monitor/code.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,6 @@
2222
# gfx helper
2323
import azure_gfx_helper
2424

25-
# init. graphics helper
26-
gfx = azure_gfx_helper.Azure_GFX(False)
27-
2825
# Get wifi details and more from a secrets.py file
2926
try:
3027
from secrets import secrets
@@ -66,7 +63,8 @@
6663
# Connect to Azure IoT Central
6764
device.connect()
6865

69-
gfx.show_text()
66+
# init. graphics helper
67+
gfx = azure_gfx_helper.Azure_GFX(is_celsius = True)
7068

7169
while True:
7270
try:

0 commit comments

Comments
 (0)