DS18B20 module, support single bus control, and read temperature.
Read temperature, return a number, makecode do not support floats, so the value is amplifies up to 100 times.
Example for JavaScript
basic.forever(() => {
serial.writeValue("temp ", DS18B20.Temperature_number(DS18B20.pin.pin0))
basic.pause(1000)
serial.writeLine("temp : " + DS18B20.Temperature_string(DS18B20.pin.pin0))
basic.pause(1000)
})
GUI
Forked from https://github.com/mengbishu/pxt-ds18b20
- Changed pins for Calliope mini
- added german translation
- for PXT/Calliope