Skip to content

Instantly share code, notes, and snippets.

@ruanyf
Created June 11, 2017 12:29
Show Gist options
  • Save ruanyf/403b0c51656a19325f36bce4d266e460 to your computer and use it in GitHub Desktop.
Save ruanyf/403b0c51656a19325f36bce4d266e460 to your computer and use it in GitHub Desktop.
Close LED on Raspberry Pi
var rpio = require('rpio');
// Configure pin 11 (GPIO17) for output (i.e. read/write).
// rpio.setOutput(11);
rpio.open(11, rpio.OUTPUT);
// Turn GPIO17 on, also known as 'high'.
rpio.write(11, rpio.LOW);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment