From f3168685a66a86f789ff1996d85e2ef641bb2c42 Mon Sep 17 00:00:00 2001 From: foamyguy Date: Wed, 4 Aug 2021 20:25:59 -0500 Subject: [PATCH] pyportal mqtt control cp7 updates --- PyPortal_MQTT_Control/code.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/PyPortal_MQTT_Control/code.py b/PyPortal_MQTT_Control/code.py index a876de8a0..c3d9a6eac 100644 --- a/PyPortal_MQTT_Control/code.py +++ b/PyPortal_MQTT_Control/code.py @@ -82,7 +82,7 @@ def set_backlight(val): # ------------- User Inretface Eliments ------------- # # Make the display context -splash = displayio.Group(max_size=200) +splash = displayio.Group() board.DISPLAY.show(splash) # Make a background color fill @@ -131,27 +131,27 @@ def set_backlight(val): splash.append(b.group) # Text Label Objects -temperature_label = Label(font, text="temperature", color=0xE300D2, max_glyphs=40) +temperature_label = Label(font, text="temperature", color=0xE300D2) temperature_label.x = 130 temperature_label.y = 20 splash.append(temperature_label) -light_label = Label(font, text="lux", color=0xE300D2, max_glyphs=40) +light_label = Label(font, text="lux", color=0xE300D2) light_label.x = 130 light_label.y = 40 splash.append(light_label) -motion_label = Label(font, text="motion", color=0xE300D2, max_glyphs=40) +motion_label = Label(font, text="motion", color=0xE300D2) motion_label.x = 130 motion_label.y = 60 splash.append(motion_label) -feed1_label = Label(font, text="MQTT feed1", color=0xE39300, max_glyphs=100) +feed1_label = Label(font, text="MQTT feed1", color=0xE39300) feed1_label.x = 130 feed1_label.y = 130 splash.append(feed1_label) -feed2_label = Label(font, text="MQTT feed2", color=0x00DCE3, max_glyphs=100) +feed2_label = Label(font, text="MQTT feed2", color=0x00DCE3) feed2_label.x = 130 feed2_label.y = 200 splash.append(feed2_label)