We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dfb7286 commit 6b6db37Copy full SHA for 6b6db37
examples/Unit/PDM_SPM1423/PDM_SPM1423.ino
@@ -46,9 +46,12 @@ bool InitI2SSpakerOrMic(int mode) {
46
// 固定为12位立体声MSB
47
.channel_format =
48
I2S_CHANNEL_FMT_ONLY_RIGHT, // Set the channel format. 设置频道格式
49
+#if ESP_IDF_VERSION > ESP_IDF_VERSION_VAL(4, 1, 0)
50
.communication_format =
51
I2S_COMM_FORMAT_STAND_I2S, // Set the format of the communication.
- // 设置通讯格式
52
+#else // 设置通讯格式
53
+ .communication_format = I2S_COMM_FORMAT_I2S,
54
+#endif
55
.intr_alloc_flags =
56
ESP_INTR_FLAG_LEVEL1, // Set the interrupt flag. 设置中断的标志
57
.dma_buf_count = 2, // DMA buffer count. DMA缓冲区计数
0 commit comments