I'm attempting to use the FT232H breakout board to drive a I2C SMART LED (ThingM, BlinkM)
I've followed the setup article here https://learn.adafruit.com/circuitpytho ... 2h/overiew
one point to note is that when i attempt to connect to my ft232h i don't get a serial number
i did read some other users that found the FT232H chips had blank eeproms
Normal GPIO is work (blinking a led on the C0 pin of the board
I've tested the Smart LED on a Raspberry PI using the blinka libraries and i'm able to control it here just fine at i2c addresss 0x09
I'm now trying to use the I2C bus using the FT232H board
i've tied my D0 pin to the SCL pin the led
ive tied my D1 + D2 pins to the SDA pin on the led
both of these pins are pulled up via a 4.7K resistor to 5V near the FT232H board
5v and Gnd operating to my LED also
the following code gives me an exception from the pyftdi library
Code: Select all
import board
import busio
addr=0x09
bus=busio.I2C(board.SCL,board.SDA)
buffer=bytearray([0x70,0x05,0x00,0x00])
bus.writeto(addr,buffer)
Code: Select all
Traceback (most recent call last):
File "d:/Devwork/Python/working/source/busio_i2c_test.py", line 7, in <module>
bus.writeto(addr,buffer)
File "d:\Devwork\Python\working\lib\site-packages\busio.py", line 86, in writeto
return self._i2c.writeto(address, buffer, stop=stop)
File "d:\Devwork\Python\working\lib\site-packages\adafruit_blinka\microcontroller\ft232h\i2c.py", line 19, in writeto
port.write(buffer[start:end], relax=stop)
File "d:\Devwork\Python\working\lib\site-packages\pyftdi\i2c.py", line 130, in write
return self._controller.write(
File "d:\Devwork\Python\working\lib\site-packages\pyftdi\i2c.py", line 704, in write
self._do_prolog(i2caddress)
File "d:\Devwork\Python\working\lib\site-packages\pyftdi\i2c.py", line 1009, in _do_prolog
raise I2cNackError('NACK from slave')
pyftdi.i2c.I2cNackError: NACK from slave