diff --git a/adafruit_simple_text_display.py b/adafruit_simple_text_display.py index d5561f9..8e55522 100644 --- a/adafruit_simple_text_display.py +++ b/adafruit_simple_text_display.py @@ -26,6 +26,7 @@ try: from typing import Optional, Tuple + import busdisplay from fontio import FontProtocol except ImportError: pass @@ -72,7 +73,7 @@ def __init__( text_scale: int = 1, font: Optional[FontProtocol] = None, colors: Optional[Tuple[Tuple[int, int, int], ...]] = None, - display: Optional[displayio.Display] = None, + display: Optional[busdisplay.BusDisplay] = None, ) -> None: """Display lines of text on a display using displayio. Lines of text are created in order as shown in the example below. If you skip a number, the line will be shown blank on the @@ -107,9 +108,9 @@ def __init__( library. For example, if you import the library as ``from adafruit_simple_text_display import SimpleTextDisplay``, you can indicate the colors as follows: ``colors=(SimpleTextDisplay.WHITE, SimpleTextDisplay.RED)``. - :param ~displayio.Display|None display: The display object. Defaults to assuming a built-in - display. To use with an external display, instantiate the display object and provide it - here. Defaults to ``board.DISPLAY``. + :param ~busdisplay.BusDisplay|None display: The display object. Defaults to assuming + a built-in display. To use with an external display, instantiate the display + object and provide it here. Defaults to ``board.DISPLAY``. This example displays two lines with temperature data in C and F on the display. Remember to call `show()` after the list to update the display.