Skip to content

Commit ef36b56

Browse files
committed
update simpletext display inner class for root_group displayio API 9.x
1 parent 6015a6a commit ef36b56

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

adafruit_clue.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959
import audiopwmio
6060
import audiocore
6161
import touchio
62+
from displayio import CIRCUITPYTHON_TERMINAL
6263

6364
__version__ = "0.0.0+auto.0"
6465
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_CLUE.git"
@@ -150,11 +151,11 @@ def add_text_line(self, color: Union[int, Tuple[int, int, int]] = 0xFFFFFF):
150151

151152
def show(self):
152153
"""Call show() to display the data list."""
153-
self._display.show(self.text_group)
154+
self._display.root_group = self.text_group
154155

155156
def show_terminal(self):
156157
"""Revert to terminalio screen."""
157-
self._display.show(None)
158+
self._display.root_group = CIRCUITPYTHON_TERMINAL
158159

159160

160161
class Clue: # pylint: disable=too-many-instance-attributes, too-many-public-methods

0 commit comments

Comments
 (0)