button_controller
v0.1.2
Published
Ultra simple hardware button callbacks for Intel Edison
Downloads
2
Maintainers
Readme
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");
});