Example of hello world for X-NUCLEO-IKS01A2

Dependencies:   X_NUCLEO_IKS01A2 mbed

Fork of HelloWorld_IKS01A2 by ST Expansion SW Team

Hello World Demo Application based on sensor expansion board X-NUCLEO-IKS01A2

Main function is to show how to get humidity, temperature, pressure, accelerometer, magnetomer and gyroscope data using the sensor expansion board and send them using UART to a connected PC or Desktop and display it on terminal applications like TeraTerm.

Revision:
8:8f495e604424
Parent:
2:f23b144da50a
Child:
13:fc873da5b445
--- a/main.cpp	Thu Nov 24 16:44:56 2016 +0000
+++ b/main.cpp	Fri Dec 02 16:10:14 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_IKS01A1 
  *          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 LSM303AGR_MAG_Sensor *magnetometer = mems_expansion_board->magnetometer;