Skip to content

Commit bbffdbd

Browse files
committed
Replace depreciated .show()
1 parent e9bbd0a commit bbffdbd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

adafruit_simple_text_display.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,8 +204,8 @@ def add_text_line(
204204

205205
def show(self) -> None:
206206
"""Call show() to display the data list."""
207-
self._display.show(self.text_group)
207+
self._display.root_group = self.text_group
208208

209209
def show_terminal(self) -> None:
210210
"""Revert to terminalio screen."""
211-
self._display.show(None)
211+
self._display.root_group = displayio.CIRCUITPYTHON_TERMINAL

0 commit comments

Comments
 (0)