mirror of
https://github.com/rzajac/esp-drv.git
synced 2025-03-14 12:57:37 +03:00
1.4 KiB
1.4 KiB
ESP8266 drivers.
The collection of device drivers for ESP8266.
- DS18B20 OneWire temperature sensor.
- DHT22 (AM2302) temperature and humidity sensor.
- SHT21 (Si7021) temperature and humidity sensor.
Build environment.
This library is part of my build system for ESP8266 based on CMake. To compile / flash examples you will have to have the ESP development environment setup as described at https://github.com/rzajac/esp-dev-env.
Development environment installation.
There are two ways to install device drivers in the development environment:
$ wget -O - https://raw.githubusercontent.com/rzajac/esp-drv/master/install.sh | bash
or if you already cloned this repository you can do:
$ cd build
$ cmake ..
$ make
$ make install
Examples.
- DHT22 get temperature and humidity
- DS18B20 get temperature
- Search for DS18B20
- SHT21 get temperature and humidity
Dependencies.
This library depends on:
to install dependency run:
$ wget -O - https://raw.githubusercontent.com/rzajac/esp-ecl/master/install.sh | bash
$ wget -O - https://raw.githubusercontent.com/rzajac/esp-prot/master/install.sh | bash
License.
Apache License Version 2.0 unless stated otherwise.