Permalink
Fetching contributors…
Cannot retrieve contributors at this time
85 lines (42 sloc) 1.31 KB

Thermometer - SI7021

Tessel with SI7021

docs/breadboard/multi-SI7021.png

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

Illustrations / Photos

Arduino with SI7021

docs/breadboard/multi-SI7021-uno.png

Fritzing diagram: docs/breadboard/multi-SI7021-uno.fzz

 

Learn More

 

License

Copyright (c) 2012-2014 Rick Waldron waldron.rick@gmail.com Licensed under the MIT license. Copyright (c) 2015-2018 The Johnny-Five Contributors Licensed under the MIT license.