Skip to content

Instantly share code, notes, and snippets.

@ruanyf
Created June 11, 2017 12:27
Show Gist options
  • Save ruanyf/83aaee7e75a0fa37a2ba0665601cf777 to your computer and use it in GitHub Desktop.
Save ruanyf/83aaee7e75a0fa37a2ba0665601cf777 to your computer and use it in GitHub Desktop.
Open 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.HIGH);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment