Skip to content

Instantly share code, notes, and snippets.

@Resseguie
Created September 15, 2014 02:20
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save Resseguie/1bd31e918cd11d8385c4 to your computer and use it in GitHub Desktop.
Led.RGB.on doesn't save color state
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