nitrogen-gpio-pin
This module allows you to use a GPIO pin in Nitrogen as a device.
Last updated 6 years ago by tpark .
Apache · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install nitrogen-gpio-pin 
SYNC missed versions from official npm registry.

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
});

Current Tags

  • 0.2.0                                ...           latest (6 years ago)

3 Versions

  • 0.2.0                                ...           6 years ago
  • 0.1.5                                ...           6 years ago
  • 0.1.3                                ...           7 years ago
Maintainers (1)
Downloads
Today 0
This Week 1
This Month 3
Last Day 0
Last Week 1
Last Month 1
Dependencies (2)
Dev Dependencies (0)
None
Dependents (2)

Copyright 2014 - 2016 © taobao.org |