Files
libopencm3-examples/examples/stm32/f4/stm32f4-disco/spi/README
cmcmanis 4defd3e1d2 The SPI-MEMS example, its not great but it does use the SPI
port and can tell you the temperature of the room you are in.
2015-01-20 16:12:56 -08:00

18 lines
684 B
Plaintext

README spi-mems
---------------
This example sets up the SPI port which is connected to
an onboard MEMS gyroscope. It uses SPI5 which happens to
be one of the SPI ports that aren't defined for other
variants of the STM32F4 family.
I'll confess that this mostly is a way to learn to use
the SPI port so that I can use it in the next example
with the LCD, but since the gyro was there I decided
to use it. Unfortunately I'm not at all sure how to
really use the Gyro. If you read the data sheet from
ST Micro it seems like it should do something useful
when you move the board around but I didn't achieve
that. Feel free to update this example with better
settings for the gyro chip.