minnow-gpio

2.0.0-0 • Public • Published

minnow-gpio

A GPIO helper library for the minnowboard max

Build Status npm version

Overview

Note: Probably need to run as root as it needs access to sysfs (/sys/class/gpio)

 
  var minnow = require('minnow-gpio');
  
  // Setup the GPIO pins before using them
  // Only needs to be called once
  minnow.setup(minnow.pin.GPIO_1, minnow.direction.OUT);
 
  // Make the pin output HIGH
  minnow.set(minnow.pin.GPIO_1, minnow.value.HIGH);
  // or 
  minnow.set(minnow.pin.GPIO_1, 1);
  // or 
  minnow.set(minnow.pin.GPIO_1, true);
 
 
 

Package Sidebar

Install

npm i minnow-gpio

Weekly Downloads

0

Version

2.0.0-0

License

MIT

Last publish

Collaborators

  • adierkens