Skip to content

Commit e2d9925

Browse files
committed
docs/library/machine.I2S: Describe new PDM RX mode.
Signed-off-by: maple "mavica" syrup <maple@maple.pet>
1 parent 843085b commit e2d9925

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

docs/library/machine.I2S.rst

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ other things. For these drivers see:
8282
Constructor
8383
-----------
8484

85-
.. class:: I2S(id, *, sck, ws, sd, mck=None, mode, bits, format, rate, ibuf)
85+
.. class:: I2S(id, *, sck, ws=None, sd, mck=None, mode, bits, format, rate, ibuf)
8686

8787
Construct an I2S object of the given id:
8888

@@ -91,7 +91,8 @@ Constructor
9191
Keyword-only parameters that are supported on all ports:
9292

9393
- ``sck`` is a pin object for the serial clock line
94-
- ``ws`` is a pin object for the word select line
94+
- ``ws`` is a pin object for the word select line;
95+
can be left unset if using ``I2S.PDM_RX`` mode
9596
- ``sd`` is a pin object for the serial data line
9697
- ``mck`` is a pin object for the master clock line;
9798
master clock frequency is sampling rate * 256
@@ -155,6 +156,10 @@ Constants
155156

156157
for initialising the I2S bus ``mode`` to transmit
157158

159+
.. data:: I2S.PDM_RX
160+
161+
for initialising the I2S bus ``mode`` to receive in PDM mode
162+
158163
.. data:: I2S.STEREO
159164

160165
for initialising the I2S bus ``format`` to stereo

0 commit comments

Comments
 (0)