This time we will use the information about schematics and oscilloscopes thatwe covered last time, to configure the SPI bus to suit an accelerometer. Our example development board, the ST STM32F407G-DISC1
, comes with a three axis accelerometer, the ST LIS3DSH
, attached to the SPI bus.
To communicate with this accelerometer, we have to read through the data sheets and schematics to figure out which device, pins, and parameters to use, then we will use CubeMX to help us get the processor started.