From: Limor "Ladyada" Fried Date: Mon, 1 Mar 2021 20:04:33 +0000 (-0500) Subject: Merge pull request #424 from thomas6g/thomas6g-tfdi232h-issue-423 X-Git-Tag: 6.3.1~1 X-Git-Url: https://git.ayoreis.com/Adafruit_Blinka-hackapet.git/commitdiff_plain/0ee27bee2d4452c3122c4d95f9ef7586cb534a3b?hp=039d968f3b3aa1539e4c34d358b66646186adcc4 Merge pull request #424 from thomas6g/thomas6g-tfdi232h-issue-423 Fix #423 FT232H Pin returns NotImplementedError --- diff --git a/src/adafruit_blinka/microcontroller/ft232h/pin.py b/src/adafruit_blinka/microcontroller/ft232h/pin.py index 94b8e14..42ae5ab 100644 --- a/src/adafruit_blinka/microcontroller/ft232h/pin.py +++ b/src/adafruit_blinka/microcontroller/ft232h/pin.py @@ -8,6 +8,9 @@ class Pin: OUT = 1 LOW = 0 HIGH = 1 + PULL_NONE = 0 + PULL_UP = 1 + PULL_DOWN = 2 ft232h_gpio = None @@ -36,7 +39,7 @@ class Pin: raise RuntimeError("Can not init a None type pin.") # FT232H does't have configurable internal pulls? if pull: - raise ValueError("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: