Skip to content
Merged
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
12 changes: 6 additions & 6 deletions PyPortal_AWS_IOT_Planter/aws_gfx_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,19 @@ def __init__(self, is_celsius=False):
:param bool is_celsius: Temperature displayed in Celsius.
"""
# root displayio group
root_group = displayio.Group(max_size=23)
root_group = displayio.Group()
self.display = board.DISPLAY
self.display.show(root_group)
super().__init__(max_size=15)
super().__init__()

# temperature display option
self._is_celsius = is_celsius

# create background icon group
self._icon_group = displayio.Group(max_size=3)
self._icon_group = displayio.Group()
self.display.show(self._icon_group)
# create text object group
self._text_group = displayio.Group(max_size=40)
self._text_group = displayio.Group()

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

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

# Water Level
water_group = displayio.Group(scale=2, max_size=2)
water_group = displayio.Group(scale=2)
self.water_level = Label(font, text="Water Level: ")
self.water_level.x = (self.display.width//2) // 11
self.water_level.y = 75
Expand Down