1.2.0 • Published 9 years ago

pinhead v1.2.0

Weekly downloads
2
License
MIT
Repository
github
Last release
9 years ago

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);
});
1.2.0

9 years ago

1.1.0

9 years ago

1.0.0

9 years ago