Skip to content

Commit

Permalink
Try to invert the sck.
Browse files Browse the repository at this point in the history
  • Loading branch information
floitsch committed Feb 7, 2025
1 parent d8e86dc commit e6f3d99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/resources/i2s_esp32.cc
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ PRIMITIVE(create) {
.din = rx_pin >= 0 ? static_cast<gpio_num_t>(rx_pin): I2S_GPIO_UNUSED,
.invert_flags = {
.mclk_inv = mclk_inv,
.bclk_inv = sck_inv,
.bclk_inv = (rx_pin != -1 && tx_pin == -1) ? true : sck_inv,
.ws_inv = ws_inv,
},
},
Expand Down

0 comments on commit e6f3d99

Please sign in to comment.