From ad365ac6719543d1f5101c182dc4503e8aad67d6 Mon Sep 17 00:00:00 2001 From: Melissa LeBlanc-Williams Date: Tue, 19 Mar 2024 13:21:41 -0700 Subject: [PATCH] Update some doc links --- busdisplay/__init__.py | 4 ++-- epaperdisplay/__init__.py | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/busdisplay/__init__.py b/busdisplay/__init__.py index f29e2a9..8bd837d 100644 --- a/busdisplay/__init__.py +++ b/busdisplay/__init__.py @@ -82,7 +82,7 @@ class BusDisplay: SH1107_addressing: bool = False, ): # pylint: disable=too-many-locals,invalid-name, too-many-branches - """Create a Display object on the given display bus (`displayio.FourWire` or + """Create a Display object on the given display bus (`fourwire.FourWire` or `paralleldisplay.ParallelBus`). The ``init_sequence`` is bitpacked to minimize the ram impact. Every command begins @@ -101,7 +101,7 @@ class BusDisplay: b"\\x11\\x80\\x78" # Exit Sleep then delay 0x78 (120ms) b"\\x29\\x80\\x78" # Display on then delay 0x78 (120ms) ) - display = displayio.Display(display_bus, init_sequence, width=320, height=240) + display = busdisplay.BusDisplay(display_bus, init_sequence, width=320, height=240) The first command is 0xE1 with 15 (0x0F) parameters following. The second and third are 0x11 and 0x29 respectively with delays (0x80) of 120ms (0x78) and no parameters. diff --git a/epaperdisplay/__init__.py b/epaperdisplay/__init__.py index ab95aa0..2341353 100644 --- a/epaperdisplay/__init__.py +++ b/epaperdisplay/__init__.py @@ -88,8 +88,8 @@ class EPaperDisplay: address_little_endian: bool = False, ) -> None: # pylint: disable=too-many-locals - """Create a EPaperDisplay object on the given display bus (`displayio.FourWire` or - `paralleldisplay.ParallelBus`). + """Create a EPaperDisplay object on the given display bus (`fourwire.FourWire` or + `paralleldisplaybus.ParallelBus`). The ``start_sequence`` and ``stop_sequence`` are bitpacked to minimize the ram impact. Every command begins with a command byte followed by a byte to determine the parameter count and @@ -101,7 +101,7 @@ class EPaperDisplay: definition. :param display_bus: The bus that the display is connected to - :type _DisplayBus: displayio.FourWire or paralleldisplay.ParallelBus + :type _DisplayBus: fourwire.FourWire or paralleldisplay.ParallelBus :param ~circuitpython_typing.ReadableBuffer start_sequence: Byte-packed command sequence. :param ~circuitpython_typing.ReadableBuffer stop_sequence: Byte-packed command sequence. :param int width: Width in pixels -- 2.49.0