diff --git a/PyPortal_AWS_IOT_Planter/aws_gfx_helper.py b/PyPortal_AWS_IOT_Planter/aws_gfx_helper.py index 6592b50c3..41063b5d8 100755 --- a/PyPortal_AWS_IOT_Planter/aws_gfx_helper.py +++ b/PyPortal_AWS_IOT_Planter/aws_gfx_helper.py @@ -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 @@ -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 @@ -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