Skip to content
This repository has been archived by the owner on Jan 21, 2020. It is now read-only.

pebblecode/pinhead

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

pinhead

pinhead

listen to changes on raspberry pi pins

pinhead(config)

config supports these properties:

  • pin (pin number to listen to)
  • interval (poll rate)
  • delay (time to wait between broadcasting changes)

example usage

var pinhead = require('pinhead');
var pin22 = pinhead({
  pin: 22
});

pin22.on('change', function (val) {
  console.log('the pin value changed to', val);
});

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published