Library for single DS18B20 on ESP32 esp-idf framework
C Makefile
Latest commit e1cb187 Oct 6, 2016 Feelfree committed on GitHub Create
Failed to load latest commit information. Update Sep 29, 2016 Create Oct 6, 2016
ds18b20.c Update ds18b20.c Sep 29, 2016
ds18b20.h Update ds18b20.h Sep 29, 2016

Simple library for single DS18B20 on ESP32


Put ds18b20.c and ds18b20.h in the same directory as your project code.
Include library with #include ds18b20.h
To initialize library, call DS_init(GPIO);
To get temperature(in Celcius), call DS_get_temp();
For example, see this code.