Skip to content

Commit befa5d0

Browse files
committedJul 14, 2021
directory i2c_manager -> lvgl_i2c
1 parent 93125f3 commit befa5d0

12 files changed

+12
-9
lines changed
 

‎CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ if(CONFIG_LV_TOUCH_CONTROLLER)
8080
endif()
8181

8282
if(CONFIG_LV_I2C)
83-
list(APPEND SOURCES "i2c_manager/i2c_manager.c")
83+
list(APPEND SOURCES "lvgl_i2c/i2c_manager.c")
8484
endif()
8585

8686
idf_component_register(SRCS ${SOURCES}

‎Kconfig

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ menu "LVGL ESP Drivers"
77
menu "I2C Port Settings"
88
depends on LV_I2C && !HAVE_I2C_MANAGER
99

10-
rsource "i2c_manager/Kconfig"
10+
rsource "lvgl_i2c/Kconfig"
1111

1212
endmenu
1313

‎component.mk

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# LVGL ESP32 drivers
22

33
# Define sources and include dirs
4-
COMPONENT_SRCDIRS := . lvgl_tft lvgl_touch
4+
COMPONENT_SRCDIRS := . lvgl_tft lvgl_touch lvgl_i2c
55
COMPONENT_ADD_INCLUDEDIRS := .
66

77
# 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
4444
$(call compile_only_if,$(and $(CONFIG_LV_TOUCH_CONTROLLER),$(CONFIG_LV_TOUCH_CONTROLLER_RA8875)), lvgl_touch/ra8875_touch.o)
4545

4646
$(call compile_only_if,$(and $(CONFIG_LV_TOUCH_CONTROLLER),$(CONFIG_LV_TOUCH_DRIVER_PROTOCOL_SPI)), lvgl_touch/tp_spi.o)
47+
48+
# I2C Manager
49+
$(call compile_only_if,$(CONFIG_LV_I2C), lvgl_i2c/i2c_manager.o)

‎lvgl_helpers.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
#include "lvgl_spi_conf.h"
1717

18-
#include "i2c_manager/i2c_manager.h"
18+
#include "lvgl_i2c/i2c_manager.h"
1919

2020
#ifdef LV_LVGL_H_INCLUDE_SIMPLE
2121
#include "lvgl.h"
File renamed without changes.

‎i2c_manager/README.md ‎lvgl_i2c/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ To use the I2C port in your code you would do something like:
5959
6060
6161
```c
62-
#include "i2c_manager/i2c_manager.h"
62+
#include "lvgl_i2c/i2c_manager.h"
6363
6464
uint8_t data[2];
6565
lvgl_i2c_read(CONFIG_LV_I2C_TOUCH_PORT, 0x23, 0x42, &data, 2);
File renamed without changes.
File renamed without changes.

‎lvgl_tft/ssd1306.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
*********************/
1616
#include "assert.h"
1717

18-
#include "i2c_manager/i2c_manager.h"
18+
#include "lvgl_i2c/i2c_manager.h"
1919

2020
#include "ssd1306.h"
2121

‎lvgl_tft/st7735s.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#include "freertos/task.h"
1515

1616
#ifdef CONFIG_LV_M5STICKC_HANDLE_AXP192
17-
#include "i2c_manager/i2c_manager.h"
17+
#include "lvgl_i2c/i2c_manager.h"
1818
#endif
1919

2020
/*********************

‎lvgl_touch/ft6x36.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
#endif
2727
#include "ft6x36.h"
2828

29-
#include "i2c_manager/i2c_manager.h"
29+
#include "lvgl_i2c/i2c_manager.h"
3030

3131
#define TAG "FT6X36"
3232

‎lvgl_touch/gt911.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
#endif
2727
#include "gt911.h"
2828

29-
#include "i2c_manager/i2c_manager.h"
29+
#include "lvgl_i2c/i2c_manager.h"
3030

3131
#define TAG "GT911"
3232

0 commit comments

Comments
 (0)
Please sign in to comment.