Example to sweep a servo according to MEMS sensors position

Dependencies:   Servo X_NUCLEO_IKS01A1 mbed

Fork of HelloWorld_IKS01A1 by ST

Revision:
4:b1526d074d83
Parent:
3:a2d2342526db
Child:
9:10f36a418bc0
--- a/main.cpp	Mon Aug 31 12:07:22 2015 +0200
+++ b/main.cpp	Thu Sep 03 10:46:55 2015 +0200
@@ -41,7 +41,7 @@
 #include "x_nucleo_iks01a1.h"
 
 /* Instantiate the expansion board */
-static X_NUCLEO_IKS01A1 *mems_expansion_board = X_NUCLEO_IKS01A1::Instance();
+static X_NUCLEO_IKS01A1 *mems_expansion_board = X_NUCLEO_IKS01A1::Instance(D14, D15);
 
 /* Retrieve the composing elements of the expansion board */
 static GyroSensor *gyroscope = mems_expansion_board->GetGyroscope();