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 adafruit_pyportal/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ def __init__( # noqa: PLR0912,PLR0913,PLR0915 Too many branches,Too many argume

# Convenience Shortcuts for compatibility
self.peripherals = Peripherals(
spi, display=self.display, splash_group=self.splash, debug=debug
spi, display=self.display, display_group=self.root_group, debug=debug
)
self.set_backlight = self.peripherals.set_backlight
self.sd_check = self.peripherals.sd_check
Expand Down
2 changes: 1 addition & 1 deletion adafruit_pyportal/graphics.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def hide_QR(self):
"""Clear any QR codes that are currently on the screen"""

if self._qr_only:
self.display.root_group = self.splash
self.display.root_group = self.root_group
else:
try:
self._qr_group.pop()
Expand Down
4 changes: 2 additions & 2 deletions adafruit_pyportal/peripherals.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
class Peripherals:
"""Peripherals Helper Class for the PyPortal Library"""

def __init__(self, spi, display, splash_group, debug=False): # noqa: PLR0912,PLR0913 Too many branches,Too many arguments in function definition
def __init__(self, spi, display, display_group, debug=False): # noqa: PLR0912,PLR0913 Too many branches,Too many arguments in function definition
# Speaker Enable
self._speaker_enable = DigitalInOut(board.SPEAKER_ENABLE)
self._speaker_enable.switch_to_output(False)
Expand Down Expand Up @@ -109,7 +109,7 @@ def __init__(self, spi, display, splash_group, debug=False): # noqa: PLR0912,PL

if debug:
print("Init cursor")
self.mouse_cursor = Cursor(board.DISPLAY, display_group=splash_group, cursor_speed=8)
self.mouse_cursor = Cursor(board.DISPLAY, display_group=display_group, cursor_speed=8)
self.mouse_cursor.hide()
self.cursor = CursorManager(self.mouse_cursor)
else:
Expand Down