]> Repositories - Adafruit_Blinka-hackapet.git/commitdiff
Merge pull request #28 from ladyada/master 0.2.2
authorDan Halbert <halbert@halwitz.org>
Sun, 19 Aug 2018 19:45:05 +0000 (15:45 -0400)
committerGitHub <noreply@github.com>
Sun, 19 Aug 2018 19:45:05 +0000 (15:45 -0400)
specifically name arguments now that we require it

src/adafruit_blinka/microcontroller/raspi_23/spi.py

index a4e1158a6f79bce68c55131cd04dddb9c70d9b64..b90587316536e105499e17d317a2073079b7fb18 100755 (executable)
@@ -19,9 +19,9 @@ class SPI:
                   firstbit=MSB, sck=None, mosi=None, miso=None):
         mode = 0
         if polarity:
-            mode |= CPOL
+            mode |= self.CPOL
         if phase:
-            mode |= CPHA
+            mode |= self.CPHA
 
         self.clock_pin = sck
         self.mosi_pin = mosi