npm.io
0.1.2 • Published 11 years ago

button_controller

Licence
GPL V2
Version
0.1.2
Deps
0
Vulns
0
Weekly
0

Button Controller

Ultra simple hardware button callbacks for Intel Edison

Installation

$ npm install button_controller

Usage

var buttonController = require("button_controller");

buttonController.add(/*GPIO used*/ 1, function () {
  console.log("button clicked");
}, function () {
  console.log("button down");
}, function () {
  console.log("button long clicked");
}, function () {
  console.log("button click ended");
});

Keywords