Skip to content

Commit b702dbb

Browse files
committed
displayio API updates
1 parent b8dd563 commit b702dbb

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

adafruit_simple_text_display.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
try:
2727
from typing import Optional, Tuple
2828

29+
import busdisplay
2930
from fontio import FontProtocol
3031
except ImportError:
3132
pass
@@ -72,7 +73,7 @@ def __init__(
7273
text_scale: int = 1,
7374
font: Optional[FontProtocol] = None,
7475
colors: Optional[Tuple[Tuple[int, int, int], ...]] = None,
75-
display: Optional[displayio.Display] = None,
76+
display: Optional[busdisplay.BusDisplay] = None,
7677
) -> None:
7778
"""Display lines of text on a display using displayio. Lines of text are created in order as
7879
shown in the example below. If you skip a number, the line will be shown blank on the
@@ -107,7 +108,7 @@ def __init__(
107108
library. For example, if you import the library as
108109
``from adafruit_simple_text_display import SimpleTextDisplay``, you can indicate the
109110
colors as follows: ``colors=(SimpleTextDisplay.WHITE, SimpleTextDisplay.RED)``.
110-
:param ~displayio.Display|None display: The display object. Defaults to assuming a built-in
111+
:param ~busdisplay.BusDisplay|None display: The display object. Defaults to assuming a built-in
111112
display. To use with an external display, instantiate the display object and provide it
112113
here. Defaults to ``board.DISPLAY``.
113114

0 commit comments

Comments
 (0)