summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2016-09-18 21:41:21 +0300
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2016-09-18 21:41:21 +0300
commit4ab3eef8d77c436e1ba27d6690cb9b505dd1c8ad (patch)
tree532224978ee90c3d72484ba5f2a799c91dd9d759
parenta2391b5a74ff771e2bfc7529aed2f7717309c448 (diff)
downloadmicropython-4ab3eef8d77c436e1ba27d6690cb9b505dd1c8ad.tar.gz
micropython-4ab3eef8d77c436e1ba27d6690cb9b505dd1c8ad.zip
docs/library/pyb.SPI: init(): Describe "bits" argument.
Based on https://github.com/micropython/micropython/pull/2210 .
-rw-r--r--docs/library/pyb.SPI.rst1
1 files changed, 1 insertions, 0 deletions
diff --git a/docs/library/pyb.SPI.rst b/docs/library/pyb.SPI.rst
index 54ecc65b6d..fd110be190 100644
--- a/docs/library/pyb.SPI.rst
+++ b/docs/library/pyb.SPI.rst
@@ -68,6 +68,7 @@ Methods
- ``polarity`` can be 0 or 1, and is the level the idle clock line sits at.
- ``phase`` can be 0 or 1 to sample data on the first or second clock edge
respectively.
+ - ``bits`` can be 8 or 16, and is the number of bits in each transferred word.
- ``firstbit`` can be ``SPI.MSB`` or ``SPI.LSB``.
- ``crc`` can be None for no CRC, or a polynomial specifier.