wpi-gpio
A no-frills wrapper around the WiringPi gpio command-line utility.
Installation
$ npm install wpi-gpio
Usage
var gpio = ;
Pin numbering
By default, wpi-gpio
uses the WiringPi pin numbers. To use Broadcom GPIO (BCM)
pin numbers instead (the -g
flag to gpio
):
gpioBCM_GPIO = true;
Methods
gpioinput1;
gpio;
gpioinput1;
gpio;
gpio;
gpio;
gpio;
License
This software is released under the terms of the MIT license. See LICENSE
.