1. 添加了esp-idf的几个组件,基于main/idf_component.yml的配置,用于应用层快速开发

2. 测试了音频播放功能,测试通过
This commit is contained in:
Misaki
2025-08-24 23:23:25 +08:00
parent fa066408e2
commit ec33aa0483
14 changed files with 984 additions and 33 deletions
+3 -1
View File
@@ -18,5 +18,7 @@ void app_main(void)
// pcf85063_test();
exio_text();
// exio_text();
// audio_test();
}
+5
View File
@@ -1,6 +1,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" # 测试用例
"../Lib/I2C_Driver/I2C_Driver.c" # IIC底层驱动库
"../Lib/QMI8658/QMI8658.c" # IMU驱动库
"../Lib/BAT_Driver/BAT_Driver.c" # 电池adc驱动库
@@ -8,9 +9,11 @@ idf_component_register(SRCS "Bionic_sphere.c"
"../Lib/SD_Card/SD_MMC.c" # SD卡驱动库
"../Lib/PCF85063/PCF85063.c" # RTC驱动库
"../Lib/EXIO/TCA9554PWR.c" # IO拓展库
"../Lib/Audio_Driver/PCM5101.c" # 音频驱动库(播放)
INCLUDE_DIRS "."
"../test/driver_test"
"../test/EXIO_Test"
"../test/audio_test"
"../Lib/I2C_Driver"
"../Lib/QMI8658"
"../Lib/BAT_Driver"
@@ -18,6 +21,7 @@ idf_component_register(SRCS "Bionic_sphere.c"
"../Lib/SD_Card"
"../Lib/PCF85063"
"../Lib/EXIO"
"../Lib/Audio_Driver"
PRIV_REQUIRES # 私有依赖
driver
bt
@@ -25,4 +29,5 @@ idf_component_register(SRCS "Bionic_sphere.c"
nvs_flash
esp_adc
fatfs
unity
)
+6
View File
@@ -0,0 +1,6 @@
dependencies:
idf: ">=4.4"
lvgl/lvgl: "~8.3.0"
chmorgan/esp-audio-player: "==1.0.7"
chmorgan/esp-libhelix-mp3: "==1.0.3"
espressif/esp-sr: "~1.9.4"