microbit-foundation / micropython-microbit-v2

Temporary home for MicroPython for micro:bit v2 as we stablise it before pushing upstream
MIT License
44 stars 25 forks source link

Missing documentation for `spi.read()` second argument #207

Closed microbit-carlos closed 4 months ago

microbit-carlos commented 5 months ago

Present in V1 and V2, it essentially writes to the SPI out the value of the second argument, for as long as it is reading data.

V1: https://github.com/bbcmicrobit/micropython/blob/v1.1.1/source/microbit/microbitspi.cpp#L111-L117

V2: https://github.com/microbit-foundation/micropython-microbit-v2/blob/15b467c44936b532fac529b810bdfcbba4dfb307/src/codal_port/microbit_spi.c#L109-L114

microbit-carlos commented 5 months ago

Docs PR:

microbit-carlos commented 4 months ago

Docs PR merged.