Git Product home page Git Product logo

Comments (5)

hbler99 avatar hbler99 commented on August 28, 2024 1

Some steps need to be carried:

  1. Add esp32_s3_lcd_ev_v1_5.zip to $ADF_PATH/components/audio_board
  2. Add esp32s3lcd evboard2 option in CMakeLists.txt, component.mk, and Kconfig.projbuild.
  3. Modify line 35 in components/audio_hal/driver/es7210/es7210.c to:
    #define ES7210_ADDR ES7210_AD1_AD0_01
  4. 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.
6. Run idf.py menuconfig and select your user-defined audio hal -> Audio Board
7. Good luck

from esp-adf.

liujkek22 avatar liujkek22 commented on August 28, 2024

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.

from esp-adf.

hbler99 avatar hbler99 commented on August 28, 2024

@liujkek22 looks like there might be a misconfiguration of the I2C. Which version of the esp32s3lcd evboard are you using? v1.5 or earlier?

from esp-adf.

liujkek22 avatar liujkek22 commented on August 28, 2024

Yes,the Verssion is truely is 1.5.

from esp-adf.

hbler99 avatar hbler99 commented on August 28, 2024

Please check the following:

  1. Ensure the board is configured as the provided audio_board.
  2. In the es8311.c file, make sure to include #include "tca9554.h".
  3. Verify the I2C pins are correctly configured as I2C_SCL->GPIO_NUM_18 and I2C_SDA->GPIO_NUM_8.

from esp-adf.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.