MCP23017 example request
jas777 opened this issue · comments
Jan Czeszejko-Sochacki commented
Hello, I have a problem with MCP23017 - I've kinda "copied" python example code into JS and it doesn't work. Does anybody have a working example?
Jonathan Perkin commented
I don't have any of these, sorry.
Kabir Sarin commented
Jonathan Perkin commented
Not directly, it only knows about native pins, but there's no reason why you can't use it to drive one.
Jan Czeszejko-Sochacki commented
@jas777 Did you ever get it to work? @jperkin Does this lib support using a port expander (or, is there any reason it wouldn't)?
I ended up using i2c-bus
, you can check my implementation at https://github.com/jas777/quassendorf/blob/main/src/mcp/MCP23017.ts