]> Repositories - hackapet/Adafruit_Blinka_Displayio.git/commitdiff
Bug fixes
authorMelissa LeBlanc-Williams <melissa@adafruit.com>
Tue, 23 Jun 2020 18:18:12 +0000 (11:18 -0700)
committerMelissa LeBlanc-Williams <melissa@adafruit.com>
Tue, 23 Jun 2020 18:18:12 +0000 (11:18 -0700)
displayio/fourwire.py
fontio.py

index a48c771380050141de7205aed61be293259b2d59..4aeee86cdcc5845b9fe1445e87987616e9a64ba0 100644 (file)
@@ -120,13 +120,12 @@ class FourWire:
     def begin_transaction(self):
         """Begin the SPI transaction by locking, configuring, and setting Chip Select
         """
     def begin_transaction(self):
         """Begin the SPI transaction by locking, configuring, and setting Chip Select
         """
-        if not self._spi.try_lock():
-            return False
+        while not self._spi.try_lock():
+            pass
         self._spi.configure(
             baudrate=self._frequency, polarity=self._polarity, phase=self._phase
         )
         self._chip_select.value = False
         self._spi.configure(
             baudrate=self._frequency, polarity=self._polarity, phase=self._phase
         )
         self._chip_select.value = False
-        return True
 
     def end_transaction(self):
         """End the SPI transaction by unlocking and setting Chip Select
 
     def end_transaction(self):
         """End the SPI transaction by unlocking and setting Chip Select
index cbb57d62246f45ad1a27b3748c6d1a7c743af39a..44faa6160052661b99000e66e6fc71518ab39966 100644 (file)
--- a/fontio.py
+++ b/fontio.py
@@ -103,7 +103,7 @@ class BuiltinFont:
 class Glyph:
     """Storage of glyph info"""
 
 class Glyph:
     """Storage of glyph info"""
 
-    def __init__(self, *, bitmap, tile_index, width, height, dx, dy, shift_x, shift_y):
+    def __init__(self, bitmap, tile_index, width, height, dx, dy, shift_x, shift_y):
         self.bitmap = bitmap
         self.width = width
         self.height = height
         self.bitmap = bitmap
         self.width = width
         self.height = height