No description
Find a file
David Lehrian 17ba05606c Update ds18b20.h
Added "extern C" to make the library compatible with C++.
2021-10-12 11:52:12 -07:00
component.mk Create component.mk 2016-10-06 17:30:18 +02:00
ds18b20.c corrected import of esp32/rom/ets_sys.h 2021-08-20 00:36:15 -07:00
ds18b20.h Update ds18b20.h 2021-10-12 11:52:12 -07:00
LICENSE Added License text #3 2018-03-13 22:07:17 +01:00
main.c Add example. 2021-08-20 08:50:39 -07:00
README.md Fixed spacing 2018-10-19 18:26:01 +02:00

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.