johnny-five
Version:
The JavaScript Robotics and Hardware Programming Framework. Use with: Arduino (all models), Electric Imp, Beagle Bone, Intel Galileo & Edison, Linino One, Pinoccio, pcDuino3, Raspberry Pi, Particle/Spark Core & Photon, Tessel 2, TI Launchpad and more!
17 lines (12 loc) • 353 B
JavaScript
var five = require("../lib/johnny-five.js");
var board = new five.Board();
board.on("ready", function() {
var rgb = new five.Led.RGB([ 9, 10, 11 ]);
var color = new five.Color({
controller: "ISL29125"
});
color.on("change", function() {
console.log("Color: ", five.Color.hexCode(this.rgb));
});
});
// TODO: need Fritzing for this