Example of hello world for X-NUCLEO-IKS01A2
Dependencies: X_NUCLEO_IKS01A2 mbed
Fork of HelloWorld_IKS01A2 by
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.
Diff: X_NUCLEO_IKS01A2/x_nucleo_iks01a2.cpp
- Revision:
- 2:f23b144da50a
- Parent:
- 0:69566eea0fba
- Child:
- 6:7a7f36ab6c20
--- a/X_NUCLEO_IKS01A2/x_nucleo_iks01a2.cpp Fri Aug 12 13:57:55 2016 +0000
+++ b/X_NUCLEO_IKS01A2/x_nucleo_iks01a2.cpp Fri Aug 19 12:13:37 2016 +0000
@@ -54,7 +54,11 @@
pt_sensor(new LPS22HBSensor(*dev_i2c)),
acc_gyro(new LSM6DSLSensor(*dev_i2c))
{
-
+ ht_sensor->Init(NULL);
+ magnetometer->Init(NULL);
+ accelerometer->Init(NULL);
+ pt_sensor->Init(NULL);
+ acc_gyro->Init(NULL);
}
/**

X-NUCLEO-IKS01A2 Motion MEMS and Environmental Sensor