X-Git-Url: https://git.ayoreis.com/hackapet/Adafruit_Blinka_Displayio.git/blobdiff_plain/94342b1947ee2913c581317d280d9dab4e85f374..dbb3f437583e0078826f9b6ba17d15555b0c8300:/displayio/i2cdisplay.py diff --git a/displayio/i2cdisplay.py b/displayio/i2cdisplay.py index 238f98d..409e0a5 100644 --- a/displayio/i2cdisplay.py +++ b/displayio/i2cdisplay.py @@ -31,7 +31,6 @@ import microcontroller try: from typing import Optional - from typing import ReadableBuffer except ImportError: pass @@ -90,12 +89,15 @@ class I2CDisplay: while not self._i2c.try_lock(): pass - def send(self, command: bool, data: ReadableBuffer) -> None: + def send(self, command: bool, data, *, toggle_every_byte=False) -> None: + # pylint: disable=unused-argument """ Sends the given command value followed by the full set of data. Display state, such as vertical scroll, set via ``send`` may or may not be reset once the code is done. """ + # NOTE: we have to have a toggle_every_byte parameter, which we ignore, + # because Display._write() sets it regardless of bus type. if command: n = len(data)