feelfreelinux / ds18b20

Library for single DS18B20 on ESP32 esp-idf framework

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

Library for single DS18B20 on ESP32 esp-idf framework

License:MIT License


Languages

Language:C 99.7%Language:Makefile 0.3%