Created
November 17, 2015 02:58
-
-
Save bathtimefish/77903a00adc6c7606cf4 to your computer and use it in GitHub Desktop.
DS18B20デジタル温度計で温度を取得するEspruinoのサンプル
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var ow = new OneWire(B1); | |
var sensor = require("DS18B20").connect(ow); | |
setInterval(function() { | |
console.log(sensor.getTemp()); | |
}, 1000); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment