]> Repositories - Adafruit_Blinka-hackapet.git/commitdiff
Fix formatting
authorthomas6g <30746275+thomas6g@users.noreply.github.com>
Sun, 28 Feb 2021 16:36:02 +0000 (16:36 +0000)
committerthomas6g <30746275+thomas6g@users.noreply.github.com>
Sun, 28 Feb 2021 16:36:02 +0000 (16:36 +0000)
src/adafruit_blinka/microcontroller/ft232h/pin.py

index 6def23f6d3bb2e33e907e79f8ec962023ce39cfd..18c5e3164959611b9e23ca3be1d4c8edf207e792 100644 (file)
@@ -9,7 +9,7 @@ class Pin:
     LOW = 0
     HIGH = 1
     PULL_NONE = 0
     LOW = 0
     HIGH = 1
     PULL_NONE = 0
-    PULL_UP =  1
+    PULL_UP = 1
     PULL_DOWN = 2
 
     ft232h_gpio = None
     PULL_DOWN = 2
 
     ft232h_gpio = None
@@ -39,7 +39,8 @@ class Pin:
             raise RuntimeError("Can not init a None type pin.")
         # FT232H does't have configurable internal pulls?
         if pull:
             raise RuntimeError("Can not init a None type pin.")
         # FT232H does't have configurable internal pulls?
         if pull:
-            raise NotImplementedError("Internal pull up/down not currently supported.")
+            raise NotImplementedError(
+                "Internal pull up/down not currently supported.")
         pin_mask = Pin.ft232h_gpio.pins | 1 << self.id
         current = Pin.ft232h_gpio.direction
         if mode == self.OUT:
         pin_mask = Pin.ft232h_gpio.pins | 1 << self.id
         current = Pin.ft232h_gpio.direction
         if mode == self.OUT: