Hi - the DS18B20 module was fixed a week or so go so you can use the callback
Without the callback Espruino doesn't want to wait for the temperature reading (which can take almost a second!) so it returns the current value and kicks off a new reading.
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.
Hi - the DS18B20 module was fixed a week or so go so you can use the callback
Without the callback Espruino doesn't want to wait for the temperature reading (which can take almost a second!) so it returns the current value and kicks off a new reading.
It should all be documented on the DS18B20 page: http://www.espruino.com/DS18B20