1. 测试了屏幕驱动,lvgl,触摸,驱动文件在Lib/Display当中。全部通过(修改了sdkconfig,以适配lvgl)
2. 新增了优雅的C语言错误处理
This commit is contained in:
+10
-1
@@ -3,7 +3,10 @@
|
||||
|
||||
#include <esp_log.h>
|
||||
|
||||
#include <drivers_test.h>
|
||||
#include "err_handle.h"
|
||||
|
||||
#include "drivers_test.h"
|
||||
|
||||
|
||||
|
||||
void app_main(void)
|
||||
@@ -21,4 +24,10 @@ void app_main(void)
|
||||
// exio_text();
|
||||
|
||||
// audio_test();
|
||||
|
||||
lcd_touch_lvgl_test();
|
||||
|
||||
ESP_GOTO(err);
|
||||
err:
|
||||
ESP_LOGI("app_main", "app_main error");
|
||||
}
|
||||
|
||||
+18
-1
@@ -2,6 +2,7 @@ idf_component_register(SRCS "Bionic_sphere.c"
|
||||
"../test/driver_test/drivers_test.c" # 测试用例
|
||||
"../test/EXIO_Test/TCA9554PWR_Test.c" # 测试用例
|
||||
"../test/audio_test/audio_test.c" # 测试用例
|
||||
"../Util/general_err_handle/err_handle.c" # 错误处理库
|
||||
"../Lib/I2C_Driver/I2C_Driver.c" # IIC底层驱动库
|
||||
"../Lib/QMI8658/QMI8658.c" # IMU驱动库
|
||||
"../Lib/BAT_Driver/BAT_Driver.c" # 电池adc驱动库
|
||||
@@ -10,10 +11,18 @@ idf_component_register(SRCS "Bionic_sphere.c"
|
||||
"../Lib/PCF85063/PCF85063.c" # RTC驱动库
|
||||
"../Lib/EXIO/TCA9554PWR.c" # IO拓展库
|
||||
"../Lib/Audio_Driver/PCM5101.c" # 音频驱动库(播放)
|
||||
INCLUDE_DIRS "."
|
||||
"../Lib/Display/LCD_Driver/ST77916.c"
|
||||
"../Lib/Display/LCD_Driver/esp_lcd_st77916/esp_lcd_st77916.c"
|
||||
"../Lib/Display/LVGL_Driver/LVGL_Driver.c"
|
||||
"../Lib/Display/LVGL_UI/LVGL_Music.c"
|
||||
"../Lib/Display/LVGL_UI/LVGL_Example.c"
|
||||
"../Lib/Display/Touch_Driver/CST816.c"
|
||||
"../Lib/Display/Touch_Driver/esp_lcd_touch/esp_lcd_touch.c"
|
||||
INCLUDE_DIRS "."
|
||||
"../test/driver_test"
|
||||
"../test/EXIO_Test"
|
||||
"../test/audio_test"
|
||||
"../Util/general_err_handle"
|
||||
"../Lib/I2C_Driver"
|
||||
"../Lib/QMI8658"
|
||||
"../Lib/BAT_Driver"
|
||||
@@ -22,6 +31,13 @@ idf_component_register(SRCS "Bionic_sphere.c"
|
||||
"../Lib/PCF85063"
|
||||
"../Lib/EXIO"
|
||||
"../Lib/Audio_Driver"
|
||||
"../Lib/Display/LCD_Driver"
|
||||
"../Lib/Display/LCD_Driver/esp_lcd_st77916"
|
||||
"../Lib/Display/LVGL_Driver"
|
||||
"../Lib/Display/LVGL_UI"
|
||||
"../Lib/Display/LVGL_UI"
|
||||
"../Lib/Display/Touch_Driver"
|
||||
"../Lib/Display/Touch_Driver/esp_lcd_touch"
|
||||
PRIV_REQUIRES # 私有依赖
|
||||
driver
|
||||
bt
|
||||
@@ -30,4 +46,5 @@ idf_component_register(SRCS "Bionic_sphere.c"
|
||||
esp_adc
|
||||
fatfs
|
||||
unity
|
||||
esp_lcd
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user