UNPKG

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, Raspberry Pi, Spark Core, TI Launchpad and more!

9 lines (7 loc) 264 B
var five = require("../lib/johnny-five.js"); new five.Board().on("ready", function() { new five.Temperature({controller: "TINKERKIT", pin: "I0"}).on("change", function() { console.log("F: ", this.fahrenheit); console.log("C: ", this.celsius); }); });