Simple "hello world" style program for X-NUCLEO-IKS01A1 MEMS Inertial & Environmental Sensor Nucleo Expansion Board

Dependencies:   X_NUCLEO_IKS01A1 mbed

Dependents:   ese_project_copy ese_project_share

X-NUCLEO-IKS01A1 MEMS Inertial & Environmental Sensor Nucleo Expansion Board Firmware Package

Introduction

This firmware package includes Components Device Drivers, Board Support Package and example applications for STMicroelectronics X-NUCLEO-IKS01A1 MEMS Inertial & Environmental Nucleo Expansion Board.

Example Application

First of all, the example application outputs information retrieved from the Expansion Board over UART. Launch a terminal application (e.g.: PuTTY on Windows, Minicom on Linux) and set the UART port to 9600 bps, 8 bit, No Parity, 1 stop bit.

This is just a simple "hello world" style program for the X-NUCLEO-IKS01A1 MEMS Inertial & Environmental Sensor Nucleo Expansion Board.

Revision:
4:b1526d074d83
Parent:
3:a2d2342526db
Child:
10:211cd9c27d5e
--- 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();