UNPKG

rpio2

Version:

Control Raspberry Pi GPIO pins with node.js. Fast and easy to use.

11 lines (7 loc) 195 B
const Gpio = require('../lib/index.js').Gpio; var gs = Gpio.createReadStream(32, {throttle: 100}); gs.pipe(process.stdout); process.on("SIGINT", function(){ gs.end(); process.exit(0); });