Skip to content

Latest commit

 

History

History
68 lines (33 loc) · 1 KB

temperature-tmp36.md

File metadata and controls

68 lines (33 loc) · 1 KB

Thermometer - TMP36

Breadboard for "Thermometer - TMP36"

docs/breadboard/temperature-tmp36.png

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

 

Run this example from the command line with:

node eg/temperature-tmp36.js
var five = require("johnny-five");

five.Board().on("ready", function() {
  var temperature = new five.Thermometer({
    controller: "TMP36",
    pin: "A0"
  });

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

Additional Notes

 

License

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