Permalink
017e5f1 Jun 8, 2018
3 contributors

Users who have contributed to this file

@rwaldron @dtex @BrianGenisio
69 lines (33 sloc) 1.01 KB

Thermometer - TMP102

Breadboard for "Thermometer - TMP102"

docs/breadboard/temperature-tmp102.png

Fritzing diagram: docs/breadboard/temperature-tmp102.fzz

 

Run this example from the command line with:

node eg/temperature-tmp102.js
var five = require("johnny-five");
var board = new five.Board();

board.on("ready", function() {
  var temperature = new five.Thermometer({
    controller: "TMP102"
  });

  temperature.on("change", function() {
    console.log(this.celsius + "°C", this.fahrenheit + "°F");
  });
});

Additional Notes

 

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.