X-Git-Url: https://git.ayoreis.com/hackapet/Adafruit_Blinka_Displayio.git/blobdiff_plain/11c916cbce12d28c86b10c5a05fa1b8bc3611d61..ad365ac6719543d1f5101c182dc4503e8aad67d6:/busdisplay/__init__.py 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.