ikitchen-mcp23017
Module to use MCP23017 16bit GPIO
Last updated 5 years ago by corporateanon .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install ikitchen-mcp23017 
SYNC missed versions from official npm registry.

MCP23017

node.js module to use MCP23017 16bit GPIO

Install

$ npm install mcp23017

Example

var MCP23017 = require('mcp23017');

var address = 0x20;
var mcp = new MCP23017(address, '/dev/i2c-1');

mcp.setGpioAPinValue(0,1); //set GPIO A Pin 0 to high
mcp.setGpioAPinValue(0,0); //set GPIO A Pin 0 to low
console.log(mcp.getGpioBPinValue(0)); //get GPIO B Pin 0 value

Notes

GPIO Port A is hardcoded as WRITE

GPIO Port B is hardcoded as READ

Current Tags

  • 0.0.2                                ...           latest (5 years ago)

2 Versions

  • 0.0.2                                ...           5 years ago
  • 0.0.1                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (2)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |