MCP23017
node.js module to use MCP23017 16bit GPIO
Install
$ npm install mcp23017
Example
var MCP23017 = ; var address = 0x20;var mcp = address '/dev/i2c-1'; mcp; //set GPIO A Pin 0 to highmcp; //set GPIO A Pin 0 to lowconsole; //get GPIO B Pin 0 value
Notes
GPIO Port A is hardcoded as WRITE GPIO PORT B is hardcoded as READ