@uci/interrupt

    0.2.1 • Public • Published

    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.

    Install

    npm i @uci/interrupt

    DownloadsWeekly Downloads

    18

    Version

    0.2.1

    License

    MIT

    Unpacked Size

    111 kB

    Total Files

    12

    Last publish

    Collaborators

    • dkebler