|
RCM — ESP32 Room Controller
WT32-ETH01 firmware
|
Драйвер I2C-расширителя портов PCA9535. More...
#include <stdint.h>#include "esp_err.h"Go to the source code of this file.
Functions | |
| esp_err_t | pca9535_init (void) |
| Инициализирует шину I2C и PCA9535. | |
| esp_err_t | pca9535_test_start (void) |
| Запускает тестовую задачу: поочерённое мигание светодиодов P0.3 и P0.4. | |
Драйвер I2C-расширителя портов PCA9535.
Definition in file pca9535.h.
| esp_err_t pca9535_init | ( | void | ) |
Инициализирует шину I2C и PCA9535.
Definition at line 69 of file pca9535.c.
References I2C_FREQ_HZ, I2C_PORT, I2C_SCL_GPIO, I2C_SDA_GPIO, PCA9535_I2C_ADDR, pca9535_read_reg(), PCA9535_REG_CONFIG0, PCA9535_REG_CONFIG1, PCA9535_REG_INVERT0, PCA9535_REG_INVERT1, pca9535_set_port0(), pca9535_write_reg(), PORT0_CONFIG_LEDS, s_i2c_bus, s_initialized, s_pca9535_dev, and TAG.
| esp_err_t pca9535_test_start | ( | void | ) |
Запускает тестовую задачу: поочерённое мигание светодиодов P0.3 и P0.4.
Definition at line 128 of file pca9535.c.
References pca9535_test_task(), s_initialized, and TAG.