]> Repositories - hackapet/Adafruit_Blinka_Displayio.git/blobdiff - displayio/i2cdisplay.py
Set the initial scale of a Group via the setter so that the associated code is run...
[hackapet/Adafruit_Blinka_Displayio.git] / displayio / i2cdisplay.py
index 238f98dda33f3c64b62e85db3d6ec6c21f450b6c..409e0a5c031b02c2a957e30b47e51b5776d2b47c 100644 (file)
@@ -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)