Skip to content

Commit 5fe847e

Browse files
committed
docs/library/machine.I2S.rst: Fix use of sd pin in examples.
Signed-off-by: Damien George <damien@micropython.org>
1 parent a367529 commit 5fe847e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/library/machine.I2S.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,25 +19,25 @@ I2S objects can be created and initialized using::
1919
# ESP32
2020
sck_pin = Pin(14) # Serial clock output
2121
ws_pin = Pin(13) # Word clock output
22-
sdout_pin = Pin(12) # Serial data output
22+
sd_pin = Pin(12) # Serial data output
2323
2424
or
2525
2626
# PyBoards
2727
sck_pin = Pin("Y6") # Serial clock output
2828
ws_pin = Pin("Y5") # Word clock output
29-
sdout_pin = Pin("Y8") # Serial data output
29+
sd_pin = Pin("Y8") # Serial data output
3030
3131
audio_out = I2S(2,
32-
sck=sck_pin, ws=ws_pin, sdin=sdin_pin,
32+
sck=sck_pin, ws=ws_pin, sd=sd_pin,
3333
mode=I2S.TX,
3434
bits=16,
3535
format=I2S.MONO,
3636
rate=44100,
3737
ibuf=20000)
3838
3939
audio_in = I2S(2,
40-
sck=sck_pin, ws=ws_pin, sdin=sdin_pin,
40+
sck=sck_pin, ws=ws_pin, sd=sd_pin,
4141
mode=I2S.RX,
4242
bits=32,
4343
format=I2S.STEREO,

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy