jperkin / node-rpio

Raspberry Pi GPIO library for node.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MCP23017 example request

jas777 opened this issue · 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.

@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 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