Open richcj10 opened 1 year ago
Sorry, I have no idea on how the Windows USB stack works (except that is a gigantic pile of sh*t).
The best place to ask the question would be the Zadig driver or any other Windows USB to libUSB wrapper you are using, I'm afraid :(
I always try to keep away from Windows as much as I can (and I've been successful for the last 22 years :))
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?