Example of 6D orientation recognition for LIS2DW12 in X-NUCLEO-IKS01A3
Dependencies: X_NUCLEO_IKS01A3
6D Orientation Demo Application with LIS2DW12 based on sensor expansion board X-NUCLEO-IKS01A3
Main function is to show how to use sensor expansion board to find out the 6D orientation and send data using UART to a connected PC or Desktop and display it on terminal applications like TeraTerm.
After connection has been established:
- the user can rotate the board to change the 6D orientation and then view the data using an hyper terminal.
- the user button can be used to display the current 6D orientation.
Diff: main.cpp
- Revision:
- 8:b6824e1c287c
- Parent:
- 6:8895c4a4d17d
diff -r 169063043ba8 -r b6824e1c287c main.cpp --- a/main.cpp Thu Oct 29 13:30:57 2020 +0000 +++ b/main.cpp Thu Jun 24 12:03:17 2021 +0000 @@ -47,7 +47,7 @@ /* Retrieve the composing elements of the expansion board */ static LIS2DW12Sensor *accelerometer = mems_expansion_board->accelerometer; -InterruptIn mybutton(USER_BUTTON); +InterruptIn mybutton(BUTTON1); DigitalOut myled(LED1); volatile int mems_event = 0;