Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion FunHouse_IOT_Hub/battery_peripheral/code.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def message(client, feed_id, payload):

display = adafruit_displayio_ssd1306.SSD1306(display_bus, width=WIDTH, height=HEIGHT)

splash = displayio.Group(max_size=10)
splash = displayio.Group()
display.show(splash)

digital_label = label.Label(
Expand Down
26 changes: 13 additions & 13 deletions FunHouse_IOT_Hub/code.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,29 +40,29 @@
raise

# Make the rgb group for setting rgb hex values for NeoPixels
rgb_group = displayio.Group(max_size=9)
rgb_group = displayio.Group()
R_label = Label(
terminalio.FONT,
text=" +\nR:\n -",
color=0xFFFFFF,
anchor_point=((0, 0.5)),
anchored_position=((5, 120)),
anchor_point=(0, 0.5),
anchored_position=(5, 120),
scale=2,
)
G_label = Label(
terminalio.FONT,
text=" +\nG:\n -",
color=0xFFFFFF,
anchor_point=((0, 0.5)),
anchored_position=((90, 120)),
anchor_point=(0, 0.5),
anchored_position=(90, 120),
scale=2,
)
B_label = Label(
terminalio.FONT,
text=" +\nB:\n -",
color=0xFFFFFF,
anchor_point=((0, 0.5)),
anchored_position=((175, 120)),
anchor_point=(0, 0.5),
anchored_position=(175, 120),
scale=2,
)
rgb_group.append(R_label)
Expand All @@ -72,24 +72,24 @@
terminalio.FONT,
text="00",
color=0xFFFFFF,
anchor_point=((0, 0.5)),
anchored_position=((35, 120)),
anchor_point=(0, 0.5),
anchored_position=(35, 120),
scale=2,
)
G = Label(
terminalio.FONT,
text="00",
color=0xFFFFFF,
anchor_point=((0, 0.5)),
anchored_position=((120, 120)),
anchor_point=(0, 0.5),
anchored_position=(120, 120),
scale=2,
)
B = Label(
terminalio.FONT,
text="00",
color=0xFFFFFF,
anchor_point=((0, 0.5)),
anchored_position=((205, 120)),
anchor_point=(0, 0.5),
anchored_position=(205, 120),
scale=2,
)
rgb_group.append(R)
Expand Down