Skip to content

Commit 7d80f4a

Browse files
authored
Merge pull request #1734 from FoamyGuy/pyportal_mqtt_control_cp7
pyportal mqtt control cp7 updates I've made several guide changes appropriately
2 parents 76a9568 + f316868 commit 7d80f4a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

PyPortal_MQTT_Control/code.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def set_backlight(val):
8282
# ------------- User Inretface Eliments ------------- #
8383

8484
# Make the display context
85-
splash = displayio.Group(max_size=200)
85+
splash = displayio.Group()
8686
board.DISPLAY.show(splash)
8787

8888
# Make a background color fill
@@ -131,27 +131,27 @@ def set_backlight(val):
131131
splash.append(b.group)
132132

133133
# Text Label Objects
134-
temperature_label = Label(font, text="temperature", color=0xE300D2, max_glyphs=40)
134+
temperature_label = Label(font, text="temperature", color=0xE300D2)
135135
temperature_label.x = 130
136136
temperature_label.y = 20
137137
splash.append(temperature_label)
138138

139-
light_label = Label(font, text="lux", color=0xE300D2, max_glyphs=40)
139+
light_label = Label(font, text="lux", color=0xE300D2)
140140
light_label.x = 130
141141
light_label.y = 40
142142
splash.append(light_label)
143143

144-
motion_label = Label(font, text="motion", color=0xE300D2, max_glyphs=40)
144+
motion_label = Label(font, text="motion", color=0xE300D2)
145145
motion_label.x = 130
146146
motion_label.y = 60
147147
splash.append(motion_label)
148148

149-
feed1_label = Label(font, text="MQTT feed1", color=0xE39300, max_glyphs=100)
149+
feed1_label = Label(font, text="MQTT feed1", color=0xE39300)
150150
feed1_label.x = 130
151151
feed1_label.y = 130
152152
splash.append(feed1_label)
153153

154-
feed2_label = Label(font, text="MQTT feed2", color=0x00DCE3, max_glyphs=100)
154+
feed2_label = Label(font, text="MQTT feed2", color=0x00DCE3)
155155
feed2_label.x = 130
156156
feed2_label.y = 200
157157
splash.append(feed2_label)

0 commit comments

Comments
 (0)