Skip to content

Commit d7f34f6

Browse files
committed
Reverting accidental changes
1 parent 70c7c36 commit d7f34f6

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

PyPortal_Azure_Plant_Monitor/azure_gfx_helper.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ 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):
3940
print('loading fonts...')
4041
glyphs = b'0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-,.: '
4142
data_glyphs = b'012345678-,.:/FC'

PyPortal_Azure_Plant_Monitor/code.py

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

25+
# init. graphics helper
26+
gfx = azure_gfx_helper.Azure_GFX(is_celsius = True)
27+
2528
# Get wifi details and more from a secrets.py file
2629
try:
2730
from secrets import secrets
@@ -63,8 +66,7 @@
6366
# Connect to Azure IoT Central
6467
device.connect()
6568

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

6971
while True:
7072
try:

0 commit comments

Comments
 (0)