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:
2:f23b144da50a
Parent:
1:4c13def99152
Child:
8:8f495e604424
--- a/main.cpp	Fri Aug 12 13:57:55 2016 +0000
+++ b/main.cpp	Fri Aug 19 12:13:37 2016 +0000
@@ -126,10 +126,10 @@
 
     printf("---\r\n");
 
-    magnetometer->GetAxes(axes);
+    magnetometer->Get_M_Axes(axes);
     printf("LSM303AGR [mag/mgauss]:  %6ld, %6ld, %6ld\r\n", axes[0], axes[1], axes[2]);
     
-    accelerometer->GetAxes(axes);
+    accelerometer->Get_X_Axes(axes);
     printf("LSM303AGR [acc/mg]:  %6ld, %6ld, %6ld\r\n", axes[0], axes[1], axes[2]);
 
     acc_gyro->Get_X_Axes(axes);