X-Git-Url: https://git.ayoreis.com/hackapet/Adafruit_Blinka_Displayio.git/blobdiff_plain/e6284da03fe940ace9fe15d092f45124cb7c12d2..bc548c6e1cf5d37e7e9898e318bddcc66191ab60:/displayio/_fourwire.py diff --git a/displayio/_fourwire.py b/displayio/_fourwire.py index 0aae5da..3d5fa7e 100644 --- a/displayio/_fourwire.py +++ b/displayio/_fourwire.py @@ -22,7 +22,7 @@ from typing import Optional import digitalio import busio import microcontroller -import _typing +import circuitpython_typing from ._constants import ( CHIP_SELECT_TOGGLE_EVERY_BYTE, CHIP_SELECT_UNTOUCHED, @@ -93,7 +93,11 @@ class FourWire: time.sleep(0.001) def send( - self, command, data: _typing.ReadableBuffer, *, toggle_every_byte: bool = False + self, + command, + data: circuitpython_typing.ReadableBuffer, + *, + toggle_every_byte: bool = False, ) -> None: """ Sends the given command value followed by the full set of data. Display state, @@ -112,7 +116,12 @@ class FourWire: self._send(DISPLAY_DATA, chip_select, data) self._end_transaction() - def _send(self, data_type: int, chip_select: int, data: _typing.ReadableBuffer): + def _send( + self, + data_type: int, + chip_select: int, + data: circuitpython_typing.ReadableBuffer, + ): self._dc.value = data_type == DISPLAY_DATA if chip_select == CHIP_SELECT_TOGGLE_EVERY_BYTE: for byte in data: