Fritzing diagram: docs/breadboard/multi-SI7021.fzz
Run this example from the command line with:
node eg/temperature-SI7021.js
var five = require("../");
var Tessel = require("tessel-io");
var board = new five.Board({
io: new Tessel()
});
board.on("ready", function() {
var temp = new five.Thermometer({
controller: "SI7021",
port: "A"
});
temp.on("change", function() {
console.log(this.celsius + "°C", this.fahrenheit + "°F");
});
});
Fritzing diagram: docs/breadboard/multi-SI7021-uno.fzz
Copyright (c) 2012-2014 Rick Waldron waldron.rick@gmail.com Licensed under the MIT license. Copyright (c) 2015-2019 The Johnny-Five Contributors Licensed under the MIT license.