Example of pedometer for LSM6DSL in X-NUCLEO-IKS01A2

Dependencies:   X_NUCLEO_IKS01A2 mbed

Fork of Pedometer_IKS01A2 by ST Expansion SW Team

Pedometer Demo Application based on sensor expansion board X-NUCLEO-IKS01A2

Main function is to show how to count steps using the sensor expansion board and send a notification using UART to a connected PC or Desktop and display it on terminal applications like TeraTerm.
After connection has been established:
- the user can try to shake the board to simulate the steps and then view the notification using an hyper terminal. When a new step is detected, the LED is switched on for a while.
- the user button can be used to reset the step counter.

Revision:
8:f81be59738d1
Parent:
7:3c8564ed9986
Child:
13:e2d9e1bf970e
--- a/main.cpp	Thu Nov 24 16:45:36 2016 +0000
+++ b/main.cpp	Fri Dec 02 16:22:55 2016 +0000
@@ -1,9 +1,9 @@
 /**
  ******************************************************************************
  * @file    main.cpp
- * @author  AST / EST
- * @version V0.0.1
- * @date    9-August-2016
+ * @author  CLab
+ * @version V1.0.0
+ * @date    2-December-2016
  * @brief   Simple Example application for using the X_NUCLEO_IKS01A2 
  *          MEMS Inertial & Environmental Sensor Nucleo expansion board.
  ******************************************************************************
@@ -41,7 +41,7 @@
 #include "x_nucleo_iks01a2.h"
 
 /* Instantiate the expansion board */
-static X_NUCLEO_IKS01A2 *mems_expansion_board = X_NUCLEO_IKS01A2::Instance(D14, D15);
+static X_NUCLEO_IKS01A2 *mems_expansion_board = X_NUCLEO_IKS01A2::Instance(D14, D15, D4, D5);
 
 /* Retrieve the composing elements of the expansion board */
 static LSM6DSLSensor *acc_gyro = mems_expansion_board->acc_gyro;