Created
June 11, 2017 12:27
-
-
Save ruanyf/83aaee7e75a0fa37a2ba0665601cf777 to your computer and use it in GitHub Desktop.
Open LED on Raspberry Pi
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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