Last active
August 29, 2015 14:12
-
-
Save gorkem/39060bd7bea02984c0d9 to your computer and use it in GitHub Desktop.
wiring-pi blinking led example
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 wpi = require('wiring-pi'); | |
wpi.setup(); | |
var pin = 1; //Change pin number according to your wiring | |
wpi.pinMode(pin, wpi.OUTPUT); | |
var value = 1; | |
setInterval(function() { | |
wpi.digitalWrite(pin, value); | |
value = +!value; | |
}, 500); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment