Skip to content

Commit 581588f

Browse files
authored
Merge pull request #1710 from lesamouraipourpre/aws-iot-planter
PyPortal AWS IOT Planter: Update for CP7
2 parents 23d747e + 68cab97 commit 581588f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

PyPortal_AWS_IOT_Planter/aws_gfx_helper.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,19 @@ def __init__(self, is_celsius=False):
1919
:param bool is_celsius: Temperature displayed in Celsius.
2020
"""
2121
# root displayio group
22-
root_group = displayio.Group(max_size=23)
22+
root_group = displayio.Group()
2323
self.display = board.DISPLAY
2424
self.display.show(root_group)
25-
super().__init__(max_size=15)
25+
super().__init__()
2626

2727
# temperature display option
2828
self._is_celsius = is_celsius
2929

3030
# create background icon group
31-
self._icon_group = displayio.Group(max_size=3)
31+
self._icon_group = displayio.Group()
3232
self.display.show(self._icon_group)
3333
# create text object group
34-
self._text_group = displayio.Group(max_size=40)
34+
self._text_group = displayio.Group()
3535

3636
print("Displaying splash screen")
3737
self._icon_sprite = None
@@ -48,7 +48,7 @@ def __init__(self, is_celsius=False):
4848
self._text_group.append(header_group)
4949

5050
# Temperature Display
51-
temp_group = displayio.Group(scale=2, max_size=400)
51+
temp_group = displayio.Group(scale=2)
5252
temp_label = Label(font, text="Temperature: ")
5353
temp_label.x = (self.display.width//2) // 11
5454
temp_label.y = 55
@@ -61,7 +61,7 @@ def __init__(self, is_celsius=False):
6161
self._text_group.append(temp_group)
6262

6363
# Water Level
64-
water_group = displayio.Group(scale=2, max_size=2)
64+
water_group = displayio.Group(scale=2)
6565
self.water_level = Label(font, text="Water Level: ")
6666
self.water_level.x = (self.display.width//2) // 11
6767
self.water_level.y = 75

0 commit comments

Comments
 (0)