docs/library/machine.I2S.rst: Fix use of sd pin in examples.
Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
parent
78718fffb1
commit
45f9a38451
@ -19,17 +19,17 @@ I2S objects can be created and initialized using::
|
|||||||
# ESP32
|
# ESP32
|
||||||
sck_pin = Pin(14) # Serial clock output
|
sck_pin = Pin(14) # Serial clock output
|
||||||
ws_pin = Pin(13) # Word clock output
|
ws_pin = Pin(13) # Word clock output
|
||||||
sdout_pin = Pin(12) # Serial data output
|
sd_pin = Pin(12) # Serial data output
|
||||||
|
|
||||||
or
|
or
|
||||||
|
|
||||||
# PyBoards
|
# PyBoards
|
||||||
sck_pin = Pin("Y6") # Serial clock output
|
sck_pin = Pin("Y6") # Serial clock output
|
||||||
ws_pin = Pin("Y5") # Word clock output
|
ws_pin = Pin("Y5") # Word clock output
|
||||||
sdout_pin = Pin("Y8") # Serial data output
|
sd_pin = Pin("Y8") # Serial data output
|
||||||
|
|
||||||
audio_out = I2S(2,
|
audio_out = I2S(2,
|
||||||
sck=sck_pin, ws=ws_pin, sdin=sdin_pin,
|
sck=sck_pin, ws=ws_pin, sd=sd_pin,
|
||||||
mode=I2S.TX,
|
mode=I2S.TX,
|
||||||
bits=16,
|
bits=16,
|
||||||
format=I2S.MONO,
|
format=I2S.MONO,
|
||||||
@ -37,7 +37,7 @@ I2S objects can be created and initialized using::
|
|||||||
ibuf=20000)
|
ibuf=20000)
|
||||||
|
|
||||||
audio_in = I2S(2,
|
audio_in = I2S(2,
|
||||||
sck=sck_pin, ws=ws_pin, sdin=sdin_pin,
|
sck=sck_pin, ws=ws_pin, sd=sd_pin,
|
||||||
mode=I2S.RX,
|
mode=I2S.RX,
|
||||||
bits=32,
|
bits=32,
|
||||||
format=I2S.STEREO,
|
format=I2S.STEREO,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user