jperkin/node-rpio

MCP23017 example request

jas777 opened this issue · 4 comments

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?

I don't have any of these, sorry.

sarink 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)?

Not directly, it only knows about native pins, but there's no reason why you can't use it to drive one.

jas777 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