directory i2c_manager -> lvgl_i2c
This commit is contained in:
parent
93125f3e00
commit
befa5d0730
|
@ -80,7 +80,7 @@ if(CONFIG_LV_TOUCH_CONTROLLER)
|
|||
endif()
|
||||
|
||||
if(CONFIG_LV_I2C)
|
||||
list(APPEND SOURCES "i2c_manager/i2c_manager.c")
|
||||
list(APPEND SOURCES "lvgl_i2c/i2c_manager.c")
|
||||
endif()
|
||||
|
||||
idf_component_register(SRCS ${SOURCES}
|
||||
|
|
2
Kconfig
2
Kconfig
|
@ -7,7 +7,7 @@ menu "LVGL ESP Drivers"
|
|||
menu "I2C Port Settings"
|
||||
depends on LV_I2C && !HAVE_I2C_MANAGER
|
||||
|
||||
rsource "i2c_manager/Kconfig"
|
||||
rsource "lvgl_i2c/Kconfig"
|
||||
|
||||
endmenu
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# LVGL ESP32 drivers
|
||||
|
||||
# Define sources and include dirs
|
||||
COMPONENT_SRCDIRS := . lvgl_tft lvgl_touch
|
||||
COMPONENT_SRCDIRS := . lvgl_tft lvgl_touch lvgl_i2c
|
||||
COMPONENT_ADD_INCLUDEDIRS := .
|
||||
|
||||
# LVGL is supposed to be used as a ESP-IDF component
|
||||
|
@ -44,3 +44,6 @@ $(call compile_only_if,$(and $(CONFIG_LV_TOUCH_CONTROLLER),$(CONFIG_LV_TOUCH_CON
|
|||
$(call compile_only_if,$(and $(CONFIG_LV_TOUCH_CONTROLLER),$(CONFIG_LV_TOUCH_CONTROLLER_RA8875)), lvgl_touch/ra8875_touch.o)
|
||||
|
||||
$(call compile_only_if,$(and $(CONFIG_LV_TOUCH_CONTROLLER),$(CONFIG_LV_TOUCH_DRIVER_PROTOCOL_SPI)), lvgl_touch/tp_spi.o)
|
||||
|
||||
# I2C Manager
|
||||
$(call compile_only_if,$(CONFIG_LV_I2C), lvgl_i2c/i2c_manager.o)
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
|
||||
#include "lvgl_spi_conf.h"
|
||||
|
||||
#include "i2c_manager/i2c_manager.h"
|
||||
#include "lvgl_i2c/i2c_manager.h"
|
||||
|
||||
#ifdef LV_LVGL_H_INCLUDE_SIMPLE
|
||||
#include "lvgl.h"
|
||||
|
|
|
@ -59,7 +59,7 @@ To use the I2C port in your code you would do something like:
|
|||
|
||||
|
||||
```c
|
||||
#include "i2c_manager/i2c_manager.h"
|
||||
#include "lvgl_i2c/i2c_manager.h"
|
||||
|
||||
uint8_t data[2];
|
||||
lvgl_i2c_read(CONFIG_LV_I2C_TOUCH_PORT, 0x23, 0x42, &data, 2);
|
|
@ -15,7 +15,7 @@
|
|||
*********************/
|
||||
#include "assert.h"
|
||||
|
||||
#include "i2c_manager/i2c_manager.h"
|
||||
#include "lvgl_i2c/i2c_manager.h"
|
||||
|
||||
#include "ssd1306.h"
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
#include "freertos/task.h"
|
||||
|
||||
#ifdef CONFIG_LV_M5STICKC_HANDLE_AXP192
|
||||
#include "i2c_manager/i2c_manager.h"
|
||||
#include "lvgl_i2c/i2c_manager.h"
|
||||
#endif
|
||||
|
||||
/*********************
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
#endif
|
||||
#include "ft6x36.h"
|
||||
|
||||
#include "i2c_manager/i2c_manager.h"
|
||||
#include "lvgl_i2c/i2c_manager.h"
|
||||
|
||||
#define TAG "FT6X36"
|
||||
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
#endif
|
||||
#include "gt911.h"
|
||||
|
||||
#include "i2c_manager/i2c_manager.h"
|
||||
#include "lvgl_i2c/i2c_manager.h"
|
||||
|
||||
#define TAG "GT911"
|
||||
|
||||
|
|
Loading…
Reference in a new issue