update to 1.9.1
This commit is contained in:
@@ -4,7 +4,7 @@
|
|||||||
# CMakeLists in this exact order for cmake to work correctly
|
# CMakeLists in this exact order for cmake to work correctly
|
||||||
cmake_minimum_required(VERSION 3.16)
|
cmake_minimum_required(VERSION 3.16)
|
||||||
|
|
||||||
set(PROJECT_VER "1.9.0")
|
set(PROJECT_VER "1.9.1")
|
||||||
|
|
||||||
# Add this line to disable the specific warning
|
# Add this line to disable the specific warning
|
||||||
add_compile_options(-Wno-missing-field-initializers)
|
add_compile_options(-Wno-missing-field-initializers)
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ set(SOURCES "audio/audio_codec.cc"
|
|||||||
"protocols/websocket_protocol.cc"
|
"protocols/websocket_protocol.cc"
|
||||||
"mcp_server.cc"
|
"mcp_server.cc"
|
||||||
"system_info.cc"
|
"system_info.cc"
|
||||||
|
"application.cc"
|
||||||
"ota.cc"
|
"ota.cc"
|
||||||
"settings.cc"
|
"settings.cc"
|
||||||
"device_state_event.cc"
|
"device_state_event.cc"
|
||||||
|
|||||||
@@ -184,6 +184,9 @@ choice BOARD_TYPE
|
|||||||
config BOARD_TYPE_ATOMMATRIX_ECHO_BASE
|
config BOARD_TYPE_ATOMMATRIX_ECHO_BASE
|
||||||
bool "AtomMatrix + Echo Base"
|
bool "AtomMatrix + Echo Base"
|
||||||
depends on IDF_TARGET_ESP32
|
depends on IDF_TARGET_ESP32
|
||||||
|
config BOARD_TYPE_ESP32S3_AUDIO_BOARD
|
||||||
|
bool "Waveshare ESP32-S3-Audio-Board"
|
||||||
|
depends on IDF_TARGET_ESP32S3
|
||||||
config BOARD_TYPE_ESP32S3_Touch_AMOLED_1_8
|
config BOARD_TYPE_ESP32S3_Touch_AMOLED_1_8
|
||||||
bool "Waveshare ESP32-S3-Touch-AMOLED-1.8"
|
bool "Waveshare ESP32-S3-Touch-AMOLED-1.8"
|
||||||
depends on IDF_TARGET_ESP32S3
|
depends on IDF_TARGET_ESP32S3
|
||||||
@@ -425,15 +428,27 @@ endchoice
|
|||||||
choice DISPLAY_ESP32S3_KORVO2_V3
|
choice DISPLAY_ESP32S3_KORVO2_V3
|
||||||
depends on BOARD_TYPE_ESP32S3_KORVO2_V3
|
depends on BOARD_TYPE_ESP32S3_KORVO2_V3
|
||||||
prompt "ESP32S3_KORVO2_V3 LCD Type"
|
prompt "ESP32S3_KORVO2_V3 LCD Type"
|
||||||
default LCD_ST7789
|
default ESP32S3_KORVO2_V3_LCD_ST7789
|
||||||
help
|
help
|
||||||
屏幕类型选择
|
屏幕类型选择
|
||||||
config LCD_ST7789
|
config ESP32S3_KORVO2_V3_LCD_ST7789
|
||||||
bool "ST7789, 分辨率240*280"
|
bool "ST7789, 分辨率240*280"
|
||||||
config LCD_ILI9341
|
config ESP32S3_KORVO2_V3_LCD_ILI9341
|
||||||
bool "ILI9341, 分辨率240*320"
|
bool "ILI9341, 分辨率240*320"
|
||||||
endchoice
|
endchoice
|
||||||
|
|
||||||
|
choice DISPLAY_ESP32S3_AUDIO_BOARD
|
||||||
|
depends on BOARD_TYPE_ESP32S3_AUDIO_BOARD
|
||||||
|
prompt "ESP32S3_AUDIO_BOARD LCD Type"
|
||||||
|
default AUDIO_BOARD_LCD_JD9853
|
||||||
|
help
|
||||||
|
屏幕类型选择
|
||||||
|
config AUDIO_BOARD_LCD_JD9853
|
||||||
|
bool "JD9853, 分辨率320*172"
|
||||||
|
config AUDIO_BOARD_LCD_ST7789
|
||||||
|
bool "ST7789, 分辨率240*320"
|
||||||
|
endchoice
|
||||||
|
|
||||||
config USE_WECHAT_MESSAGE_STYLE
|
config USE_WECHAT_MESSAGE_STYLE
|
||||||
bool "Enable WeChat Message Style"
|
bool "Enable WeChat Message Style"
|
||||||
default n
|
default n
|
||||||
|
|||||||
@@ -1069,17 +1069,13 @@ void Esp32Music::PlayAudioStream()
|
|||||||
packet.payload.resize(pcm_size_bytes);
|
packet.payload.resize(pcm_size_bytes);
|
||||||
memcpy(packet.payload.data(), final_pcm_data, pcm_size_bytes);
|
memcpy(packet.payload.data(), final_pcm_data, pcm_size_bytes);
|
||||||
|
|
||||||
if (final_pcm_data_fft == nullptr)
|
if (final_pcm_data_fft != nullptr)
|
||||||
{
|
{
|
||||||
|
heap_caps_free(final_pcm_data_fft);
|
||||||
|
}
|
||||||
final_pcm_data_fft = (int16_t *)heap_caps_malloc(
|
final_pcm_data_fft = (int16_t *)heap_caps_malloc(
|
||||||
final_sample_count * sizeof(int16_t),
|
final_sample_count * sizeof(int16_t),
|
||||||
MALLOC_CAP_SPIRAM);
|
MALLOC_CAP_SPIRAM);
|
||||||
}
|
|
||||||
|
|
||||||
memcpy(
|
|
||||||
final_pcm_data_fft,
|
|
||||||
final_pcm_data,
|
|
||||||
final_sample_count * sizeof(int16_t));
|
|
||||||
|
|
||||||
ESP_LOGD(TAG, "Sending %d PCM samples (%d bytes, rate=%d, channels=%d->1) to Application",
|
ESP_LOGD(TAG, "Sending %d PCM samples (%d bytes, rate=%d, channels=%d->1) to Application",
|
||||||
final_sample_count, pcm_size_bytes, mp3_frame_info_.samprate, mp3_frame_info_.nChans);
|
final_sample_count, pcm_size_bytes, mp3_frame_info_.samprate, mp3_frame_info_.nChans);
|
||||||
|
|||||||
@@ -26,7 +26,7 @@
|
|||||||
#define VOLUME_UP_BUTTON_GPIO GPIO_NUM_NC
|
#define VOLUME_UP_BUTTON_GPIO GPIO_NUM_NC
|
||||||
#define VOLUME_DOWN_BUTTON_GPIO GPIO_NUM_NC
|
#define VOLUME_DOWN_BUTTON_GPIO GPIO_NUM_NC
|
||||||
|
|
||||||
#ifdef CONFIG_LCD_ST7789
|
#ifdef CONFIG_ESP32S3_KORVO2_V3_LCD_ST7789
|
||||||
#define DISPLAY_SDA_PIN GPIO_NUM_NC
|
#define DISPLAY_SDA_PIN GPIO_NUM_NC
|
||||||
#define DISPLAY_SCL_PIN GPIO_NUM_NC
|
#define DISPLAY_SCL_PIN GPIO_NUM_NC
|
||||||
#define DISPLAY_WIDTH 280
|
#define DISPLAY_WIDTH 280
|
||||||
@@ -40,7 +40,7 @@
|
|||||||
#define DISPLAY_OFFSET_Y 0
|
#define DISPLAY_OFFSET_Y 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_LCD_ILI9341
|
#ifdef CONFIG_ESP32S3_KORVO2_V3_LCD_ILI9341
|
||||||
#define LCD_TYPE_ILI9341_SERIAL
|
#define LCD_TYPE_ILI9341_SERIAL
|
||||||
#define DISPLAY_SDA_PIN GPIO_NUM_NC
|
#define DISPLAY_SDA_PIN GPIO_NUM_NC
|
||||||
#define DISPLAY_SCL_PIN GPIO_NUM_NC
|
#define DISPLAY_SCL_PIN GPIO_NUM_NC
|
||||||
|
|||||||
@@ -3,7 +3,6 @@
|
|||||||
#include "lcd_display.h"
|
#include "lcd_display.h"
|
||||||
|
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <font_awesome_symbols.h>
|
|
||||||
#include <esp_log.h>
|
#include <esp_log.h>
|
||||||
#include <esp_err.h>
|
#include <esp_err.h>
|
||||||
#include <esp_lvgl_port.h>
|
#include <esp_lvgl_port.h>
|
||||||
|
|||||||
Reference in New Issue
Block a user