Skip to content

Commit

Permalink
docs: Add spi.read() second argument.
Browse files Browse the repository at this point in the history
  • Loading branch information
microbit-carlos committed May 2, 2024
1 parent 2093bbb commit f55f5c5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/spi.rst
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,10 @@ Functions
The ``sclk``, ``mosi`` and ``miso`` arguments specify the pins to use for
each type of signal.

.. method:: spi.read(nbytes)
.. method:: spi.read(nbytes, out=0)

Read at most ``nbytes``. Returns what was read.
Read at most ``nbytes`` while continuously writing the single byte given by
``out``. Returns what was read.

.. method:: spi.write(buffer)

Expand Down

0 comments on commit f55f5c5

Please sign in to comment.