UNPKG

johnny-five-electron

Version:

Temporary fork to support Electron (to be deprecated)

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); }); });