X-Git-Url: https://git.ayoreis.com/hackapet/Adafruit_Blinka_Displayio.git/blobdiff_plain/3be987da8dc6b929a0f2b58dbac2d784552a1c39..HEAD:/busdisplay/__init__.py diff --git a/busdisplay/__init__.py b/busdisplay/__init__.py index b21c4c8..4a11a46 100644 --- a/busdisplay/__init__.py +++ b/busdisplay/__init__.py @@ -3,10 +3,10 @@ # SPDX-License-Identifier: MIT """ -`displayio.display` +`busdisplay` ================================================================================ -displayio for Blinka +busdisplay for Blinka **Software and Dependencies:** @@ -82,8 +82,8 @@ 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 - `paralleldisplay.ParallelBus`). + """Create a Display object on the given display bus (`fourwire.FourWire` or + `paralleldisplaybus.ParallelBus`). The ``init_sequence`` is bitpacked to minimize the ram impact. Every command begins with a command byte followed by a byte to determine the parameter count and if a @@ -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.