mirror of
https://github.com/espressif/esp-idf.git
synced 2026-09-22 13:01:16 +03:00
i2s: support esp32h2
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
| Supported Targets | ESP32 | ESP32-C3 | ESP32-S2 | ESP32-S3 |
|
||||
| ----------------- | ----- | -------- | -------- | -------- |
|
||||
| Supported Targets | ESP32 | ESP32-C3 | ESP32-S2 | ESP32-S3 | ESP32-H2 |
|
||||
| ----------------- | ----- | -------- | -------- | -------- | -------- |
|
||||
|
||||
# I2S ES8311 Example
|
||||
|
||||
@@ -41,20 +41,20 @@ For more details, see [ES8311 datasheet](http://www.everest-semi.com/pdf/ES8311%
|
||||
│ WS-GPIO 5 ├──────────►│PIN8-LRCK PIN13-OUTN├───────────┤ │
|
||||
│ │ │ │ └─────────┘
|
||||
│ SDOUT-GPIO 18├──────────►│PIN9-SDIN │
|
||||
│ │ │ │
|
||||
│ (GPIO 2)│ │ │
|
||||
│ SDIN-GPIO 19│◄──────────┤PIN7-SDOUT │
|
||||
│ │ │ │ ┌─────────┐
|
||||
│ (GPIO 3)│ │ │ ┌─────────┐
|
||||
│ │ │ PIN18-MIC1P├───────────┤ │
|
||||
│ SCL-GPIO 16├──────────►│PIN1 -CCLK │ │ MIC │
|
||||
│ (GPIO 7)│ │ PIN17-MIC1N├───────────┤ │
|
||||
│ (GPIO 6)│ │ PIN17-MIC1N├───────────┤ │
|
||||
│ SDA-GPIO 17│◄─────────►│PIN19-CDATA │ └─────────┘
|
||||
│ (GPIO 8)│ │ │
|
||||
│ (GPIO 7)│ │ │
|
||||
│ VCC 3.3├───────────┤VCC │
|
||||
│ │ │ │
|
||||
│ GND├───────────┤GND │
|
||||
└─────────────────┘ └──────────────────────────┘
|
||||
```
|
||||
Note: Since ESP32-C3 board does not have GPIO 16/17, you can use other available GPIOs instead. In this example, we set GPIO 7/8 as I2C pins for ESP32-C3 and GPIO 16/17 for other chips.
|
||||
Note: Since ESP32-C3 & ESP32-H2 board does not have GPIO 16/17, you can use other available GPIOs instead. In this example, we set GPIO 6/7 as I2C pins for ESP32-C3 & ESP32-H2 and GPIO 16/17 for other chips, same as GPIO 18/19, we use GPIO 2/3 instead.
|
||||
|
||||
### Dependency
|
||||
|
||||
@@ -123,8 +123,8 @@ If you have a logic analyzer, you can use a logic analyzer to grab GPIO signal d
|
||||
| MCLK |module clock | GPIO_NUM_0|
|
||||
| BCLK |bit clock | GPIO_NUM_4 |
|
||||
| WS |word select | GPIO_NUM_5 |
|
||||
| SDOUT |serial data out| GPIO_NUM_18 |
|
||||
| SDIN |serial data in | GPIO_NUM_19 |
|
||||
| SDOUT |serial data out| GPIO_NUM_18/2 |
|
||||
| SDIN |serial data in | GPIO_NUM_19/3 |
|
||||
|
||||
### Customize your own music
|
||||
|
||||
|
||||
Reference in New Issue
Block a user