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
Although a 74HC595 shift register isn't an I2C device, the Expander class treat it as one. This only becomes visible when two or more 74HC595 shift registers are used as they all end up having the same I2C address. It's possible to work around the issue by giving each shift register a unique address:
Yikes, that's a totally real bug. Expander controller definitions will need to include some flag that indicates that they are I2C and therefore subject to I2C address constraints, or "normalization" step that automatically adds an address for those that shouldn't require an address from the user. I'll add this to my more immediate "to do" list
This issue was reported on the J5 gitter channel.
If two 74HC595 shift registers are used like this:
The following error will be thrown:
Although a 74HC595 shift register isn't an I2C device, the Expander class treat it as one. This only becomes visible when two or more 74HC595 shift registers are used as they all end up having the same I2C address. It's possible to work around the issue by giving each shift register a unique address:
Perhaps this is only a documentation issue.
The text was updated successfully, but these errors were encountered: