Skip to content

Commit

Permalink
The pin restrictions for MCLK is not relevant for ESP32S3. (#1480)
Browse files Browse the repository at this point in the history
Removing the check for the restriction on MCLK pin from the toit code.
The C++ code does still check it.
  • Loading branch information
mikkeldamsgaard authored Mar 9, 2023
1 parent 95d45d4 commit 7cfe1a2
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/i2s.toit
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ class Bus:
--use_apll/bool=false
--buffer_size/int=(32 * 2 * bits_per_sample / 8):
if buffer_size % (2 * bits_per_sample / 8) != 0: throw "INVALID_ARGUMENT"
if mclk and mclk.num != 0 and mclk.num != 1 and mclk.num != 3: throw "INVALID_ARGUMENT"
sck_pin := sck ? sck.num : -1
ws_pin := ws ? ws.num : -1
tx_pin := tx ? tx.num : -1
Expand Down

0 comments on commit 7cfe1a2

Please sign in to comment.