Created
September 15, 2014 02:20
-
-
Save Resseguie/1bd31e918cd11d8385c4 to your computer and use it in GitHub Desktop.
Led.RGB.on doesn't save color state
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 five = require("johnny-five"); | |
new five.Board().on("ready", function() { | |
console.log("CONNECTED"); | |
var led = new five.Led.RGB([3,5,6]); | |
led.on(); | |
setTimeout(function() { | |
console.log(led.color()); | |
},1000); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment