We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c66757f commit d295918Copy full SHA for d295918
lang/en/typeshed/stdlib/microbit/spi.pyi
@@ -27,12 +27,13 @@ def init(
27
"""
28
...
29
30
-def read(nbytes: int) -> bytes:
31
- """Read bytes.
+def read(nbytes: int, out: int = 0) -> bytes:
+ """Read at most ``nbytes`` while continuously writing the single byte given by ``out``.
32
33
Example: ``spi.read(64)``
34
35
:param nbytes: Maximum number of bytes to read.
36
+ :param out: The byte value to write (default 0).
37
:return: The bytes read.
38
39
0 commit comments