Upgrade Playlist Features
This commit is contained in:
@@ -1,41 +1,45 @@
|
||||
# 由于原来的麦克风型号停产,2025年7月之后的太极派(JC3636W518)更换了麦克风,并且更换了屏幕玻璃,所以在产品标签上批次号大于2528的用户请选择I2S Type PDM,
|
||||
# 新增双声道配置
|
||||
# 编译配置命令
|
||||
|
||||
**配置编译目标为 ESP32S3:**
|
||||
|
||||
```bash
|
||||
idf.py set-target esp32s3
|
||||
```
|
||||
|
||||
**打开 menuconfig:**
|
||||
|
||||
```bash
|
||||
idf.py menuconfig
|
||||
```
|
||||
|
||||
**选择板子:**
|
||||
|
||||
```
|
||||
Xiaozhi Assistant -> Board Type -> 太极小派esp32s3
|
||||
|
||||
Xiaozhi Assistant -> TAIJIPAI_S3_CONFIG -> taiji-pi-S3 I2S Type -> I2S Type PDM
|
||||
```
|
||||
|
||||
**如果需要选择双声道:**
|
||||
```
|
||||
Xiaozhi Assistant -> TAIJIPAI_S3_CONFIG -> Enabel use 2 slot
|
||||
```
|
||||
|
||||
**修改PSRAM配置:**
|
||||
|
||||
```
|
||||
component config -> ESP PSRAM -> SPI RAM config -> Try to allocate memories of WiFi and LWIP in SPIRAM firstly. If failed, allocate internal memory
|
||||
|
||||
```
|
||||
|
||||
**编译:**
|
||||
|
||||
```bash
|
||||
idf.py build
|
||||
```
|
||||
# 由于原来的麦克风型号停产,2025年7月之后的太极派(JC3636W518)更换了麦克风,并且更换了屏幕玻璃,所以在产品标签上批次号大于2528的用户请选择I2S Type PDM,
|
||||
|
||||
# 新增双声道配置
|
||||
|
||||
# 编译配置命令
|
||||
|
||||
**配置编译目标为 ESP32S3:**
|
||||
|
||||
```bash
|
||||
idf.py set-target esp32s3
|
||||
```
|
||||
|
||||
**打开 menuconfig:**
|
||||
|
||||
```bash
|
||||
idf.py menuconfig
|
||||
```
|
||||
|
||||
**选择板子:**
|
||||
|
||||
```
|
||||
Xiaozhi Assistant -> Board Type -> 太极小派esp32s3
|
||||
|
||||
Xiaozhi Assistant -> TAIJIPAI_S3_CONFIG -> taiji-pi-S3 I2S Type -> I2S Type PDM
|
||||
```
|
||||
|
||||
**如果需要选择双声道:**
|
||||
```
|
||||
|
||||
Xiaozhi Assistant -> TAIJIPAI_S3_CONFIG -> Enabel use 2 slot
|
||||
```
|
||||
|
||||
|
||||
**修改PSRAM配置:**
|
||||
|
||||
```
|
||||
component config -> ESP PSRAM -> SPI RAM config -> Try to allocate memories of WiFi and LWIP in SPIRAM firstly. If failed, allocate internal memory
|
||||
|
||||
```
|
||||
|
||||
**编译:**
|
||||
|
||||
```bash
|
||||
idf.py build
|
||||
```
|
||||
|
||||
@@ -1,66 +1,66 @@
|
||||
#ifndef _BOARD_CONFIG_H_
|
||||
#define _BOARD_CONFIG_H_
|
||||
|
||||
// Taiji Pi S3 Board configuration
|
||||
|
||||
#include <driver/gpio.h>
|
||||
#include <driver/spi_master.h>
|
||||
|
||||
#define AUDIO_INPUT_SAMPLE_RATE 24000
|
||||
#define AUDIO_OUTPUT_SAMPLE_RATE 24000
|
||||
#define AUDIO_DEFAULT_OUTPUT_VOLUME 80
|
||||
|
||||
#define AUDIO_I2S_GPIO_MCLK GPIO_NUM_21
|
||||
#define AUDIO_I2S_GPIO_WS GPIO_NUM_16
|
||||
#define AUDIO_I2S_GPIO_BCLK GPIO_NUM_18
|
||||
#define AUDIO_I2S_GPIO_DIN GPIO_NUM_NC
|
||||
#define AUDIO_I2S_GPIO_DOUT GPIO_NUM_17
|
||||
#define AUDIO_MUTE_PIN GPIO_NUM_48 // 低电平静音
|
||||
|
||||
#define AUDIO_MIC_WS_PIN GPIO_NUM_45
|
||||
#define AUDIO_MIC_SD_PIN GPIO_NUM_46
|
||||
#define AUDIO_MIC_SCK_PIN GPIO_NUM_42
|
||||
|
||||
#define DISPLAY_WIDTH 360
|
||||
#define DISPLAY_HEIGHT 360
|
||||
#define DISPLAY_MIRROR_X false
|
||||
#define DISPLAY_MIRROR_Y false
|
||||
#define DISPLAY_SWAP_XY false
|
||||
|
||||
#define QSPI_LCD_H_RES (360)
|
||||
#define QSPI_LCD_V_RES (360)
|
||||
#define QSPI_LCD_BIT_PER_PIXEL (16)
|
||||
|
||||
#define QSPI_LCD_HOST SPI2_HOST
|
||||
#define QSPI_PIN_NUM_LCD_PCLK GPIO_NUM_9
|
||||
#define QSPI_PIN_NUM_LCD_CS GPIO_NUM_10
|
||||
#define QSPI_PIN_NUM_LCD_DATA0 GPIO_NUM_11
|
||||
#define QSPI_PIN_NUM_LCD_DATA1 GPIO_NUM_12
|
||||
#define QSPI_PIN_NUM_LCD_DATA2 GPIO_NUM_13
|
||||
#define QSPI_PIN_NUM_LCD_DATA3 GPIO_NUM_14
|
||||
#define QSPI_PIN_NUM_LCD_RST GPIO_NUM_47
|
||||
#define QSPI_PIN_NUM_LCD_BL GPIO_NUM_15
|
||||
|
||||
#define DISPLAY_OFFSET_X 0
|
||||
#define DISPLAY_OFFSET_Y 0
|
||||
|
||||
#define TP_PORT (I2C_NUM_1)
|
||||
#define TP_PIN_NUM_TP_SDA (GPIO_NUM_7)
|
||||
#define TP_PIN_NUM_TP_SCL (GPIO_NUM_8)
|
||||
#define TP_PIN_NUM_TP_RST (GPIO_NUM_40)
|
||||
#define TP_PIN_NUM_TP_INT (GPIO_NUM_41)
|
||||
|
||||
#define DISPLAY_BACKLIGHT_PIN QSPI_PIN_NUM_LCD_BL
|
||||
#define DISPLAY_BACKLIGHT_OUTPUT_INVERT false
|
||||
|
||||
#define TAIJIPI_ST77916_PANEL_BUS_QSPI_CONFIG(sclk, d0, d1, d2, d3, max_trans_sz) \
|
||||
{ \
|
||||
.data0_io_num = d0, \
|
||||
.data1_io_num = d1, \
|
||||
.sclk_io_num = sclk, \
|
||||
.data2_io_num = d2, \
|
||||
.data3_io_num = d3, \
|
||||
.max_transfer_sz = max_trans_sz, \
|
||||
}
|
||||
|
||||
#endif // _BOARD_CONFIG_H_
|
||||
#ifndef _BOARD_CONFIG_H_
|
||||
#define _BOARD_CONFIG_H_
|
||||
|
||||
// Taiji Pi S3 Board configuration
|
||||
|
||||
#include <driver/gpio.h>
|
||||
#include <driver/spi_master.h>
|
||||
|
||||
#define AUDIO_INPUT_SAMPLE_RATE 24000
|
||||
#define AUDIO_OUTPUT_SAMPLE_RATE 24000
|
||||
#define AUDIO_DEFAULT_OUTPUT_VOLUME 80
|
||||
|
||||
#define AUDIO_I2S_GPIO_MCLK GPIO_NUM_21
|
||||
#define AUDIO_I2S_GPIO_WS GPIO_NUM_16
|
||||
#define AUDIO_I2S_GPIO_BCLK GPIO_NUM_18
|
||||
#define AUDIO_I2S_GPIO_DIN GPIO_NUM_NC
|
||||
#define AUDIO_I2S_GPIO_DOUT GPIO_NUM_17
|
||||
#define AUDIO_MUTE_PIN GPIO_NUM_48 // 低电平静音
|
||||
|
||||
#define AUDIO_MIC_WS_PIN GPIO_NUM_45
|
||||
#define AUDIO_MIC_SD_PIN GPIO_NUM_46
|
||||
#define AUDIO_MIC_SCK_PIN GPIO_NUM_42
|
||||
|
||||
#define DISPLAY_WIDTH 360
|
||||
#define DISPLAY_HEIGHT 360
|
||||
#define DISPLAY_MIRROR_X true
|
||||
#define DISPLAY_MIRROR_Y true
|
||||
#define DISPLAY_SWAP_XY false
|
||||
|
||||
#define QSPI_LCD_H_RES (360)
|
||||
#define QSPI_LCD_V_RES (360)
|
||||
#define QSPI_LCD_BIT_PER_PIXEL (16)
|
||||
|
||||
#define QSPI_LCD_HOST SPI2_HOST
|
||||
#define QSPI_PIN_NUM_LCD_PCLK GPIO_NUM_9
|
||||
#define QSPI_PIN_NUM_LCD_CS GPIO_NUM_10
|
||||
#define QSPI_PIN_NUM_LCD_DATA0 GPIO_NUM_11
|
||||
#define QSPI_PIN_NUM_LCD_DATA1 GPIO_NUM_12
|
||||
#define QSPI_PIN_NUM_LCD_DATA2 GPIO_NUM_13
|
||||
#define QSPI_PIN_NUM_LCD_DATA3 GPIO_NUM_14
|
||||
#define QSPI_PIN_NUM_LCD_RST GPIO_NUM_47
|
||||
#define QSPI_PIN_NUM_LCD_BL GPIO_NUM_15
|
||||
|
||||
#define DISPLAY_OFFSET_X 0
|
||||
#define DISPLAY_OFFSET_Y 0
|
||||
|
||||
#define TP_PORT (I2C_NUM_1)
|
||||
#define TP_PIN_NUM_TP_SDA (GPIO_NUM_7)
|
||||
#define TP_PIN_NUM_TP_SCL (GPIO_NUM_8)
|
||||
#define TP_PIN_NUM_TP_RST (GPIO_NUM_40)
|
||||
#define TP_PIN_NUM_TP_INT (GPIO_NUM_41)
|
||||
|
||||
#define DISPLAY_BACKLIGHT_PIN QSPI_PIN_NUM_LCD_BL
|
||||
#define DISPLAY_BACKLIGHT_OUTPUT_INVERT false
|
||||
|
||||
#define TAIJIPI_ST77916_PANEL_BUS_QSPI_CONFIG(sclk, d0, d1, d2, d3, max_trans_sz) \
|
||||
{ \
|
||||
.data0_io_num = d0, \
|
||||
.data1_io_num = d1, \
|
||||
.sclk_io_num = sclk, \
|
||||
.data2_io_num = d2, \
|
||||
.data3_io_num = d3, \
|
||||
.max_transfer_sz = max_trans_sz, \
|
||||
}
|
||||
|
||||
#endif // _BOARD_CONFIG_H_
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
{
|
||||
"target": "esp32s3",
|
||||
"builds": [
|
||||
{
|
||||
"name": "taiji-pi-s3",
|
||||
"sdkconfig_append": [
|
||||
"CONFIG_SPIRAM_TRY_ALLOCATE_WIFI_LWIP=y"
|
||||
]
|
||||
}
|
||||
]
|
||||
{
|
||||
"target": "esp32s3",
|
||||
"builds": [
|
||||
{
|
||||
"name": "taiji-pi-s3",
|
||||
"sdkconfig_append": [
|
||||
"CONFIG_SPIRAM_TRY_ALLOCATE_WIFI_LWIP=y"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user