Created
November 6, 2015 09:11
-
-
Save thomasphorton/b4549adf54a748e24c1e to your computer and use it in GitHub Desktop.
Basic test script for Raspberry Pi GPIO
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 gpio = require('rpi-gpio'); | |
var pin = 11; | |
gpio.setup(pin, gpio.OUT, function() { | |
gpio.write(pin, true, function(err) { | |
if (err) throw err; | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment