esp32:wm8782
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| esp32:wm8782 [2021/05/18 12:32] – aistis | esp32:wm8782 [2021/05/18 12:33] (current) – aistis | ||
|---|---|---|---|
| Line 11: | Line 11: | ||
| <code cpp> | <code cpp> | ||
| - | |||
| - | |||
| #include < | #include < | ||
| - | #include < | ||
| - | #include < | ||
| - | #include < | ||
| - | //#include " | ||
| const i2s_port_t I2S_PORT = I2S_NUM_0; | const i2s_port_t I2S_PORT = I2S_NUM_0; | ||
| #include " | #include " | ||
| - | //#include " | ||
| void setup() { | void setup() { | ||
| - | // | ||
| Serial.begin(115200); | Serial.begin(115200); | ||
| Line 40: | Line 32: | ||
| .channel_format = I2S_CHANNEL_FMT_ONLY_LEFT, | .channel_format = I2S_CHANNEL_FMT_ONLY_LEFT, | ||
| // .channel_format = I2S_CHANNEL_FMT_RIGHT_LEFT, | // .channel_format = I2S_CHANNEL_FMT_RIGHT_LEFT, | ||
| - | |||
| - | // although the SEL config should be left, it seems to transmit on right | ||
| .communication_format = (i2s_comm_format_t)(I2S_COMM_FORMAT_I2S | I2S_COMM_FORMAT_I2S_MSB), | .communication_format = (i2s_comm_format_t)(I2S_COMM_FORMAT_I2S | I2S_COMM_FORMAT_I2S_MSB), | ||
| .intr_alloc_flags = 0, | .intr_alloc_flags = 0, | ||
| Line 106: | Line 96: | ||
| auto v2 = *((int32_t*)communicationData + 1); | auto v2 = *((int32_t*)communicationData + 1); | ||
| Serial.printf(" | Serial.printf(" | ||
| - | |||
| - | |||
| - | |||
| } | } | ||
| </ | </ | ||
esp32/wm8782.1621330337.txt.gz · Last modified: by aistis
