No description, website, or topics provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
node_modules/rpi-gpio
README.md
index.js
package.json

README.md

pinhead

pinhead

listen to changes on raspberry pi pins

pinhead(config)

config supports these properties:

  • pin (pin number to listen to)
  • interval (poll rate)
  • delay (time to wait between broadcasting changes)

example usage

var pinhead = require('pinhead');
var pin22 = pinhead({
  pin: 22
});

pin22.on('change', function (val) {
  console.log('the pin value changed to', val);
});