You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a setup with two 232H for two different I2C busses.
I can get only one to work at a time; if both are plugged in, the PY library stops working until I do a driver reinstall. This seems to be a new issue with Windows.
Code:
`
from pyftdi import FtdiLogger
from pyftdi.i2c import I2cController, I2cIOError
from time import sleep
from array import array as Array
from binascii import hexlify
import time
from pyftdi.ftdi import Ftdi
DeviceAddress = 0x50
AddressSpace = 16
I have a setup with two 232H for two different I2C busses.
I can get only one to work at a time; if both are plugged in, the PY library stops working until I do a driver reinstall. This seems to be a new issue with Windows.
Code:
`
from pyftdi import FtdiLogger
from pyftdi.i2c import I2cController, I2cIOError
from time import sleep
from array import array as Array
from binascii import hexlify
import time
from pyftdi.ftdi import Ftdi
DeviceAddress = 0x50
AddressSpace = 16
DeviceA = 'ftdi://::FT7T9DYH/1'
DeviceB = 'ftdi://::FT7T9C0N/1'
GPIO_WIDTH = 1 # use 2 GPIOs for output, 2 GPIOs for input (loopback)
GPIO_OUT_OFFSET = 5 # GPIO output are b3..b4
GPIO_IN_OFFSET = 4 # GPIO input are b8..b9
class EEPROM():
Device = EEPROM(DeviceB)
Device.WriteName(0,"RickIsCool")
Device.ReadName(0,10)
##for i in range(9):
print(i, end=" ")
Device.SetCurrent(i)
time.sleep(3)
`
Any ideas on what I could try differently?
The text was updated successfully, but these errors were encountered: