nitrogen-gpio-pin

0.2.0 • Public • Published

nitrogen-gpio-pin

This module allows you to use a GPIO pin in Nitrogen as a device.

How to use in your project

  1. Add 'nitrogen-gpio-pin' to your packages.json.
  2. Configure the pin you'd like to control:
var config = {
    pin: 4  
};
  1. Create a GPIO pin device:
var GPIOPin = require('nitrogen-gpio-pin');
var gpioPin = new GPIOPin(config); 
gpioPin.set(0, function() {
    // success
});

Dependencies (2)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i nitrogen-gpio-pin

    Weekly Downloads

    4

    Version

    0.2.0

    License

    none

    Last publish

    Collaborators

    • tpark