Skip to content

Ozsie/mc-gpio

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A simple library for accessing the RaspberryPI GPIO pins.

Example:

var gpio = require('mc-gpio');

gpio.openPin(0, "out", function(err, data) {
  if (err) {
    // Handle error
  } else {
    gpio.write(0, 1, function(err, data) {
      if (err) {
        // Handle error
      } else {
        // Everything is fine and the pin is open and on.
      }
    }
  }
});

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published