This MicroPython DS18X20 library is designed for any hardware plaform that supports MicroPython such as Raspberry Pi Pico, ESP32, Micro:bit... to make it easy to use with DS18B20 Temperature Sensor. It is easy to use for not only beginners but also experienced users...
For some devices, the MicroPython firmware does not include support for the DS18X20 module, so this library was created to provide compatibility for these devices. It is created by DIYables to work with DIYables DS18B20 Temperature Sensor, but also work with DS18X20 products from other brands. Please consider purchasing products from DIYables Store on Amazon to support our works.
- Works with any hardware plaform that supports MicroPython such as Raspberry Pi Pico, ESP32, Micro:bit...
- __init__(onewire)
- scan()
- def convert_temp()
- read_temp(address)
- def wait_for_conversion()
- main.py
Note that for some devices, the MicroPython firmware already includes support for the DS18X20 module, so you may not need to use this custom library. For example: