mirror of
https://github.com/78/xiaozhi-esp32.git
synced 2026-07-21 02:05:52 +00:00
Update project version to 2.4.0 and adjust component dependencies
- Bump project version in CMakeLists.txt to 2.4.0. - Change espressif/esp_video component version to ^2.0.1 in idf_component.yml. - Modify AUDIO_INPUT_REFERENCE setting in config.h to false for m5stack-core-s3. - Remove unnecessary infinite loops in xmini_c3_board.cc during initialization.
This commit is contained in:
+1
-1
@@ -9,5 +9,5 @@ include($ENV{IDF_PATH}/tools/cmake/project.cmake)
|
||||
# "Trim" the build. Include the minimal set of components, main, and anything it depends on.
|
||||
idf_build_set_property(MINIMAL_BUILD ON)
|
||||
|
||||
set(PROJECT_VER "2.3.0")
|
||||
set(PROJECT_VER "2.4.0")
|
||||
project(xiaozhi)
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
#include <driver/gpio.h>
|
||||
|
||||
#define AUDIO_INPUT_REFERENCE true
|
||||
#define AUDIO_INPUT_REFERENCE false
|
||||
#define AUDIO_INPUT_SAMPLE_RATE 24000
|
||||
#define AUDIO_OUTPUT_SAMPLE_RATE 24000
|
||||
|
||||
|
||||
@@ -173,18 +173,10 @@ public:
|
||||
XminiC3Board() : boot_button_(BOOT_BUTTON_GPIO) {
|
||||
InitializeCodecI2c();
|
||||
InitializeSsd1306Display();
|
||||
while (true) {
|
||||
ESP_LOGI(TAG, "Initializing SSD1306 display");
|
||||
vTaskDelay(1000 / portTICK_PERIOD_MS);
|
||||
}
|
||||
InitializeButtons();
|
||||
InitializePowerSaveTimer();
|
||||
InitializeTools();
|
||||
|
||||
while (true) {
|
||||
ESP_LOGI(TAG, "Waiting for boot button to be pressed");
|
||||
vTaskDelay(1000 / portTICK_PERIOD_MS);
|
||||
}
|
||||
// 避免使用错误的固件,把 EFUSE 操作放在最后
|
||||
// 把 ESP32C3 的 VDD SPI 引脚作为普通 GPIO 口使用
|
||||
esp_efuse_write_field_bit(ESP_EFUSE_VDD_SPI_AS_GPIO);
|
||||
|
||||
@@ -43,7 +43,7 @@ dependencies:
|
||||
rules:
|
||||
- if: target in [esp32s3]
|
||||
espressif/esp_video:
|
||||
version: ^2.3.0
|
||||
version: ^2.0.1
|
||||
rules:
|
||||
- if: target in [esp32p4, esp32s3]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user