-
Notifications
You must be signed in to change notification settings - Fork 36
FT232H Connected to Neopixel Driver gives an Invalid hardware ID #127
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
It's baked into the firmware. For ATtiny based seesaws (neodriver is one of these), the firmware is here: For SAMD based seesaws, the firmware is here: The value itself comes from querying the Status function register for
|
Is this something I can help with? I'm now sure what I can do. |
That's actually probably the best fix for getting it working with the FT232H. There is potentially a small amount of clock stretching happening with the seesaw chip, and the FT232H may or may not be handling that well. Slowing down the I2C frequency is a good work around. With the slowed down clock, the id is probably reading correctly now as well. Can verify via REPL: >>> import board, busio
>>> from adafruit_seesaw import seesaw, neopixel
>>> i2c = busio.I2C(board.SCL, board.SDA, frequency=10000)
>>> ss = seesaw.Seesaw(i2c, addr=0x60)
>>> ss.chip_id
135
>>> hex(_)
'0x87'
>>> |
Yes, now it does read the correct chip id! I'll close that other PR with a note. |
Can we add a note to the example code that the frequency may need to be slowed down? I can do it if you point me to where it lives. |
Uh oh!
There was an error while loading. Please reload this page.
I have a FT232h connected to a Neopixel Driver board. They are connected via the FT232H STEMMA to the NeoPixel Drivers STEMMA connector.
Example code I'm testing with.
Error being raised:
The guide has me installing adafruit-circuitpython-seesaw I see where the error is being raise on lines 152-164.
pip install adafruit-circuitpython-seesaw
Is a new chip being used on the NeoPixel driver board, and the code hasn't been updated?
There are some other examples that setup the I2C with
I modified the example code I was using to test the FT232H and NeoPixel driver to use the above but that gives me this error:
===== Update =====
I took a look at the chip on the Neopixel driver board with a magnifying glass. It is an Attiny, the code on the chip is T1616-N. I edited this line in the source to change the ID to
0x43
, not0x67
because of this bug. The neopixels started to change colors, a rainbow pattern then died with this exception:This looks like a bug in the example code. I will edit it and create a new issue and PR.Maybe not really a bug in the example, what I had to do to stop the error was to reduce the frequency:
I will create a PR to add another chip ID for the Attiny1616 if that is a valid fix?The text was updated successfully, but these errors were encountered: