Skip to content

Commit 0225ceb

Browse files
authored
Merge pull request #1656 from lesamouraipourpre/funhouse-iot-hub
FunHouse IOT Hub: Update for CP7
2 parents f524a45 + 3979bb2 commit 0225ceb

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

FunHouse_IOT_Hub/battery_peripheral/code.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ def message(client, feed_id, payload):
105105

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

108-
splash = displayio.Group(max_size=10)
108+
splash = displayio.Group()
109109
display.show(splash)
110110

111111
digital_label = label.Label(

FunHouse_IOT_Hub/code.py

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -40,29 +40,29 @@
4040
raise
4141

4242
# Make the rgb group for setting rgb hex values for NeoPixels
43-
rgb_group = displayio.Group(max_size=9)
43+
rgb_group = displayio.Group()
4444
R_label = Label(
4545
terminalio.FONT,
4646
text=" +\nR:\n -",
4747
color=0xFFFFFF,
48-
anchor_point=((0, 0.5)),
49-
anchored_position=((5, 120)),
48+
anchor_point=(0, 0.5),
49+
anchored_position=(5, 120),
5050
scale=2,
5151
)
5252
G_label = Label(
5353
terminalio.FONT,
5454
text=" +\nG:\n -",
5555
color=0xFFFFFF,
56-
anchor_point=((0, 0.5)),
57-
anchored_position=((90, 120)),
56+
anchor_point=(0, 0.5),
57+
anchored_position=(90, 120),
5858
scale=2,
5959
)
6060
B_label = Label(
6161
terminalio.FONT,
6262
text=" +\nB:\n -",
6363
color=0xFFFFFF,
64-
anchor_point=((0, 0.5)),
65-
anchored_position=((175, 120)),
64+
anchor_point=(0, 0.5),
65+
anchored_position=(175, 120),
6666
scale=2,
6767
)
6868
rgb_group.append(R_label)
@@ -72,24 +72,24 @@
7272
terminalio.FONT,
7373
text="00",
7474
color=0xFFFFFF,
75-
anchor_point=((0, 0.5)),
76-
anchored_position=((35, 120)),
75+
anchor_point=(0, 0.5),
76+
anchored_position=(35, 120),
7777
scale=2,
7878
)
7979
G = Label(
8080
terminalio.FONT,
8181
text="00",
8282
color=0xFFFFFF,
83-
anchor_point=((0, 0.5)),
84-
anchored_position=((120, 120)),
83+
anchor_point=(0, 0.5),
84+
anchored_position=(120, 120),
8585
scale=2,
8686
)
8787
B = Label(
8888
terminalio.FONT,
8989
text="00",
9090
color=0xFFFFFF,
91-
anchor_point=((0, 0.5)),
92-
anchored_position=((205, 120)),
91+
anchor_point=(0, 0.5),
92+
anchored_position=(205, 120),
9393
scale=2,
9494
)
9595
rgb_group.append(R)

0 commit comments

Comments
 (0)