Description: This example shows how to configure the MEMS accelerometre to detect acceleration X/Y axis
and to detect the click/double click on Z axis.
After startup the program checks the MEMS accelerometre status registers and behaves as follows:
1. If the board is moved the acceleration is detected on x/Y axis and LEDs toggles according to
the motion direction and speed.
2. If a click is detected on Z axis LED3 and LED6 toggles during 3s.
3. If a double click is detected on Z axis all LEDs toggles during 3s.
To Search:
File list (Check if you may need any files):
MEMS
....\.DS_Store
__MACOSX
........\MEMS
........\....\._.DS_Store
MEMS\EWARM
....\.....\LIS302DL.ewd
....\.....\LIS302DL.ewp
....\.....\LIS302DL.eww
....\.....\stm32f4xx_flash.icf
....\main.c
....\main.h
....\MDK-ARM
....\.......\LIS302DL.uvopt
....\.......\LIS302DL.uvproj
....\readme.txt
....\stm32f4xx_conf.h
....\stm32f4xx_it.c
....\stm32f4xx_it.h
....\system_stm32f4xx.c
....\TASKING
....\.......\.metadata
....\.......\.........\Link
....\.......\LIS302DL
....\.......\........\.cproject
....\.......\........\.project
....\.......\........\LIS302DL.launch
....\.......\........\TASKING
....\.......\........\.......\stm32f4xx.lsl
....\TrueSTUDIO
....\..........\.metadata
....\..........\.........\Link
....\..........\LIS302DL
....\..........\........\.cproject
....\..........\........\.project
....\..........\........\.settings
....\..........\........\.........\com.atollic.truestudio.debug.hardware_device.prefs
....\..........\........\LIS302DL.elf.launch
....\..........\........\stm32_flash.ld