Open liujkek22 opened 4 months ago
Some steps need to be carried:
#define ES7210_ADDR ES7210_AD1_AD0_01
Change the function in components/audio_hal/driver/es8311/es8311.c at line 291 to:
esp_err_t es8311_pa_power(bool enable)
{
// esp_err_t ret = ESP_OK;
// if (enable) {
// ESP_LOGW(TAG, "PA Enable");
// ret = gpio_set_level(get_pa_enable_gpio(), 1);
// } else {
// ret = gpio_set_level(get_pa_enable_gpio(), 0);
// }
// return ret;
esp_tca9554_config_t pca_cfg = {
.i2c_scl = GPIO_NUM_18,
.i2c_sda = GPIO_NUM_8,
.interrupt_output = -1,
};
tca9554_init(&pca_cfg);
tca9554_set_io_config(BIT(0), TCA9554_IO_OUTPUT);
esp_err_t ret = ESP_OK;
if (enable) {
ESP_LOGW(TAG, "PA Enable");
ret = tca9554_set_output_state(BIT(0), TCA9554_IO_HIGH);
} else {
ret = tca9554_set_output_state(BIT(0), TCA9554_IO_LOW);
}
return ESP_OK;
}
If you need to use other boards, revert the changes in step 3 and step 4.
Thank you for your guidance; despite my numerous attempts following your suggested approach, the monitor persistently displays an error: "E (455) I2C_BUS: D:/ESP52/esp-adf/components/esp_peripherals/driver/i2c_bus/i2c_bus.c:115 (i2c_bus_write_bytes): I2C Bus Write Register Error." I appreciate your assistance and am grateful for any further advice.
@liujkek22 looks like there might be a misconfiguration of the I2C. Which version of the esp32s3lcd evboard are you using? v1.5 or earlier?
Yes,the Verssion is truely is 1.5.
Please check the following:
adf/components/audio_board
directory to accommodate theesp32s3lcdevboard2
directory and including four files within it:board.h
,board.c
,board_defs.h
, andboard_pins_config.c
. These files were initially sourced from theesp32_s3_korvo2_v3
board and subsequently tailored to match the actual configurations of theesp32s3lcdevboard2
. Additionally, adjustments were made to the./CMakeLists.txt
file and theKconfig.projbuild
to facilitate these changes.esp32s3lcdevboard2
to ensure successful execution.