I have tried the other 3 boards I have, and 2 of them does not work either.
I have tried a timing loop, and there are almost 1% in difference, between the board that work, and the board that not work.
/* board that not work
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.
I have tried the other 3 boards I have, and 2 of them does not work either.
I have tried a timing loop, and there are almost 1% in difference, between the board that work, and the board that not work.
/* board that not work
print(getTime());
for(i=0;i<10000;i++);
print(getTime());
END CODE
/* board that not work
sensor
={"bus":{"pin":A0},"sCode":undefined}
7.34425
7.34925
*/
/* board that work
sensor
={"bus":{"pin":A0},"sCode":3530822130496018984}
9.21675
9.2449
The timing here are before, and after the require.
CODE
print(getTime());
var sensor = require("DS18B20").connect(ow);
print(getTime());
END CODE
Maybe it has something with the timing to do.