Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
README-ja.ejs
README-ja.md
README.ejs
README.md
image.jpg
index.d.ts
index.js
wired.fzz
wired.png

README.md

Temperature Sensor - LM61 Temperature sensor LM61BIZ/LM61CIZ

photo of AnalogTemperatureSensor

wired(obniz, {vcc, gnd, output})

// Javascript Example
var tempsens = obniz.wired("LM61", { gnd:0 , output:1, vcc:2});

onchange

callback function for temperature change. Unit of temp is Celsius

// Javascript Example
var tempsens = obniz.wired("LM61",   { gnd:0 , output:1, vcc:2});
tempsens.onchange = function(temp){
console.log(temp)
};

[await]getWait

get temperature change. Unit of temp is Celsius

// Javascript Example
var tempsens = obniz.wired("LM61",   { gnd:0 , output:1, vcc:2});
var temp = await tempsens.getWait();
console.log(temp);
You can’t perform that action at this time.