ESP-IDF Components library¶
Components for Espressif ESP32 ESP-IDF framework.
Some of them ported from esp-open-rtos.
Project home:
How to use¶
ESP32 ESP-IDF¶
Clone respository:
cd ~/my/work/path
git clone git@github.com:UncleRus/esp-idf-lib.git
or
cd ~/my/work/path
git clone git@gitlab.com:UncleRus/esp-idf-lib.git
Add path to components in your project makefile, e.g:
PROJECT_NAME := my-esp-project
EXTRA_COMPONENT_DIRS := $(HOME)/my/work/path/esp-idf-lib/components
include $(IDF_PATH)/make/project.mk
or in CMakeLists.txt:
cmake_minimum_required(VERSION 3.5)
set(EXTRA_COMPONENT_DIRS $ENV{HOME}/my/work/path/esp-idf-lib/components)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(my-esp-project)
ESP8266 RTOS SDK¶
Clone respository:
cd ~/my/work/path
git clone git@github.com:UncleRus/esp-idf-lib.git
or
cd ~/my/work/path
git clone git@gitlab.com:UncleRus/esp-idf-lib.git
Add path to components in your project makefile, e.g:
PROJECT_NAME := my-esp-project
EXTRA_COMPONENT_DIRS := $(HOME)/my/work/path/esp-idf-lib/components
EXCLUDE_COMPONENTS := max7219 mcp23x17 led_strip
include $(IDF_PATH)/make/project.mk
Available components¶
Common drivers¶
Real-time clocks¶
Humidity & temperature sensors¶
- dht - Driver for DHT11, AM2301 (DHT21, DHT22, AM2302, AM2321), Itead Si7021
- sht3x - Driver for Sensirion SHT3x digital temperature and humidity sensor
- si7021 - Driver for Si7013/Si7020/Si7021/HTU21D/SHT2x and compatible
- ds18x20 - Driver for DS18B20/DS18S20
- max31725 - Driver for MAX31725/MAX31726 temperature sensors
- lm75 - Driver for for LM75, a digital temperature sensor and thermal watchdog
- bme680 - Driver for BME680 digital environmental sensor
- mcp9808 - Driver for MCP9808 digital temperature sensor
- mcp960x - Driver for MCP9600/MCP9601, thermocouple EMF to temperature converter
- tsys01 - Driver for precision digital temperature sensor TSYS01
Pressure sensors¶
Air quality/Gas sensors¶
ADC/DAC¶
Power/Current monitors¶
Magnetic sensors¶
Light sensors¶
GPIO expanders¶
- pcf8574 - Driver for PCF8574 8-bit I/O expander for I2C-bus
- pcf8575 - Driver for PCF8575 16-bit I/O expander for I2C-bus
- tca95x5 - Driver for TCA9535/TCA9555 remote 16-bit I/O expanders for I2C-bus
- mcp23008 - Driver for 8-bit I2C GPIO expander MCP23008
- mcp23x17 - Driver for I2C/SPI 16 bit GPIO expanders MCP23017/MCP23S17
Addressable LEDs¶
Other¶
- hd44780 - Universal driver for HD44780 LCD display
- max7219 - Driver for 8-Digit LED display drivers, MAX7219/MAX7221
- pca9685 - Driver for 16-channel, 12-bit PWM PCA9685
- ultrasonic - Driver for ultrasonic range meters HC-SR04, HY-SRF05
- encoder - Driver for incremental rotary encoders
- tda74xx - Driver for TDA7439/TDA7439DS/TDA7440D audioprocessors
- rda5807m - Driver for single-chip broadcast FM radio tuner RDA5807M
- tca9548 - Driver for TCA9548A/PCA9548A low-voltage 8-channel I2C switch
- ds3502 - Driver for nonvolatile digital potentiometer DS3502