@Kim are you loading this module via the WebIDE or is it just copy+paste (the module itself)?
I have just tried with the latest 1v47 build and the example code works fine, but I'm using HY board and not official Espruino.
After uploading the example code could you please try to clearInterval() and then
ow.search();
//should return an array with one quite a big number, possibly negative. That is your device serial code
var serialCode = ow.search()[0];
serialCode - ((serialCode >> 8) << 8);
//should return 40 which is a family code for DS18B20
And sorry for the ugly code formatting, I don't really get how it works on this forum.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
@Kim are you loading this module via the WebIDE or is it just copy+paste (the module itself)?
I have just tried with the latest 1v47 build and the example code works fine, but I'm using HY board and not official Espruino.
After uploading the example code could you please try to clearInterval() and then
And sorry for the ugly code formatting, I don't really get how it works on this forum.