| nRF5 SDK v12.0.0 |

Choose documentation: | nRF5 SDK | S130 SoftDevice API | S132 SoftDevice API | S212 SoftDevice API | S332 SoftDevice API

All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
SPI Master Example

The SPI Master Example demonstrates the use of the SPI or SPIM peripheral. It uses the SPI master driver. The application executes SPI transactions every 200 ms and toggles the LED when the transfer is completed.

If you connect one board that runs the SPI Master Example to a second board that runs the SPI Slave Example, you can observe that the board running the slave application receives valid data.

You can find the source code and the project file of the example in the following folder: `<InstallFolder>\examples\peripheral\spi`

# Testing

Test the SPI Master Example application by performing the following steps:

1. Compile and program the application.
2. Observe that the LED is toggled every 200 ms.