inputmonitor
An Input Monitor for GPIOs on Raspberry PI with Node.js using pigpio
Basic Usage
"use strict";var Gpio = Gpio;var InputMonitor = ; // Define constantsvar gpioNum = 19;var inputName = 'Input1';var inputNum = 1; // Function to get input status changed { console;} // Initialize InputMonitor with GPIO number, a number, a namevar inputMonitor = gpioNum GpioPUD_DOWN inputNum inputName; // Set funcion callbackinputMonitor; // Start watchinputMonitorstart;