You are reading a single comment by @graf and its replies. Click here to read the full conversation.
  • @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.

About

Avatar for graf @graf started