mirror of
https://github.com/feelfreelinux/ds18b20.git
synced 2025-12-05 18:20:33 -08:00
No description
|
|
||
|---|---|---|
| component.mk | ||
| ds18b20.c | ||
| ds18b20.h | ||
| LICENSE | ||
| main.c | ||
| README.md | ||
Simple library for single DS18B20 on ESP32
Usage
Put ds18b20.c and ds18b20.h in the same directory as your project code.
Include library with #include ds18b20.h
To initialize library, call ds18b20_init(GPIO);
To get temperature(in Celcius), call ds18b20_get_temp();
For example, see this code.