summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2021-08-05 13:00:35 +1000
committerDamien George <damien@micropython.org>2021-08-07 20:40:54 +1000
commit45f9a38451ce7419c9a97f8f2b471746a383c7b7 (patch)
tree89c6d8bb5d2dbf6fe116c4daacfcca38ecf68d9d
parent78718fffb1f3010c7a40bb4c29c6ddf5b8dadaa3 (diff)
docs/library/machine.I2S.rst: Fix use of sd pin in examples.
Signed-off-by: Damien George <damien@micropython.org>
-rw-r--r--docs/library/machine.I2S.rst8
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/library/machine.I2S.rst b/docs/library/machine.I2S.rst
index e1c6af990..45877a5ae 100644
--- a/docs/library/machine.I2S.rst
+++ b/docs/library/machine.I2S.rst
@@ -19,17 +19,17 @@ I2S objects can be created and initialized using::
# ESP32
sck_pin = Pin(14) # Serial clock output
ws_pin = Pin(13) # Word clock output
- sdout_pin = Pin(12) # Serial data output
+ sd_pin = Pin(12) # Serial data output
or
# PyBoards
sck_pin = Pin("Y6") # Serial 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,
- sck=sck_pin, ws=ws_pin, sdin=sdin_pin,
+ sck=sck_pin, ws=ws_pin, sd=sd_pin,
mode=I2S.TX,
bits=16,
format=I2S.MONO,
@@ -37,7 +37,7 @@ I2S objects can be created and initialized using::
ibuf=20000)
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,
bits=32,
format=I2S.STEREO,