GPIO Omega2
Control Onion Omega2 GPIO pins from NodeJS using fast-gpio.
Quick start
Add this module to your project
npm install --save gpio-omega2
Usage
Control a Pin
'use strict';const GpioOmega2 = ;const gpio = ;const pinNumber = 0;const pin = gpio;pin;
Turn on a led
'use strict';const GpioOmega2 = ;const gpio = ;const pinNumber = 0;const led = gpio;led;
Blinking led
'use strict';const GpioOmega2 = ;const gpio = ;const pinNumber = 0;const led = gpio;const delay = 500;led;
Functions
- pin.high();
- pin.low();
- pin.toggle();
- pin.set(value);
- led.on();
- led.off();
- led.toggle();
- led.blink();
- led.stopBlinking();
Authors
- Felipe Céspedes - felipecespedespisso@gmail.com - felipecespedes
License
This project is licensed under the MIT License - see the LICENSE file for details