Created
June 11, 2017 12:29
-
-
Save ruanyf/403b0c51656a19325f36bce4d266e460 to your computer and use it in GitHub Desktop.
Close 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.LOW); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment