Skip to content

Instantly share code, notes, and snippets.

@Resseguie Resseguie/rgb-on.js
Created Sep 15, 2014

Embed
What would you like to do?
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
You can’t perform that action at this time.