Skip to content

Instantly share code, notes, and snippets.

@thomasphorton
Created November 6, 2015 09:11
Show Gist options
  • Save thomasphorton/b4549adf54a748e24c1e to your computer and use it in GitHub Desktop.
Save thomasphorton/b4549adf54a748e24c1e to your computer and use it in GitHub Desktop.
Basic test script for Raspberry Pi GPIO
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