if not Pin.ft232h_gpio:
from pyftdi.i2c import I2cController
i2c = I2cController()
- i2c.configure("ftdi:///1")
+ i2c.configure("ftdi://ftdi:ft232h/1")
Pin.ft232h_gpio = i2c.get_gpio()
# check if pin is valid
if pin_id:
current |= 1 << self.id
else:
current &= ~(1 << self.id)
+ # must mask out any input pins
Pin.ft232h_gpio.write(current & Pin.ft232h_gpio.direction)
# release the kraken
else:
SDA = Pin()
SCK = SCLK = Pin()
MOSI = Pin()
-MISO = Pin()
\ No newline at end of file
+MISO = Pin()