Exchange bytes with SPI peripherals and radio modules.
Open in compiler →Source code and build tools are available in the protected platform workspace.
How it works
Send and receive one byte over SPI.
- Wire MOSI/MISO/SCK using the board-specific SPI pins.
- Wire chipSelect to the listed CS pin.
- Pull CS LOW for the transfer.
- Return CS HIGH after the byte exchange.
Connections
| Pin | Connect to | Note |
|---|---|---|
| D10 | SPI peripheral CS/SS | SPI MOSI/MISO/SCK move to board-specific SPI pins. |