Module Specifically for Raspberry Pi. Interrupted gpio pin are connect to socket(s) that can push UCI packets when interrupts happen (like when mcp ports chain interrupt from expander pin)
 
Go to file
David Kebler 12143f58e4 upgrade to esm from @std/esm 2018-05-16 07:12:14 -07:00
examples upgrade to esm from @std/esm 2018-05-16 07:12:14 -07:00
src upgrade to esm from @std/esm 2018-05-16 07:12:14 -07:00
test added interrupts class as multiple extension of Interrupt 2018-03-04 15:10:34 -08:00
.eslintrc.js working rpi gpio interrupt with packet socket 2018-02-23 21:32:13 -08:00
.gitignore upgrade to esm from @std/esm 2018-05-16 07:12:14 -07:00
.npmignore initial commit 2017-01-11 15:56:25 -08:00
.travis.yml initial commit 2017-01-11 15:56:25 -08:00
package.json upgrade to esm from @std/esm 2018-05-16 07:12:14 -07:00
readme.md update 2017-06-23 11:12:34 -07:00

readme.md

uCOMmandIt Interrupt Package

Build Status Inline docs devDependencies codecov

This module creates an ES6 Interrupt class by extending the event emitter class for use . It calls uses the pigio C library via pigpio javascript bindings package in order to set up one or more pins on an SBC as interrupts that are then listened for.

The pigipio C library is specifically coded for the Raspberry Pi but might be adapatable to any single board computer (sbc) with Gpios assuming they would be pigio C, compatiable. You must have pigpio C library installed first.

When a gpio pin so set up is tripped this class emits a "fired" message. If you pass a handler function it will be called when the "fired" message is emitted or you can set up your own "fired" listener to do as you please.

You'll need to refer to https://github.com/fivdi/pigpio to make sure you have the pigpio C library set up.