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:
- 6:7a7f36ab6c20
- Parent:
- 2:f23b144da50a
--- a/X_NUCLEO_IKS01A2/x_nucleo_iks01a2.cpp Wed Nov 23 15:53:51 2016 +0000
+++ b/X_NUCLEO_IKS01A2/x_nucleo_iks01a2.cpp Wed Nov 23 16:45:36 2016 +0000
@@ -52,7 +52,7 @@
magnetometer(new LSM303AGR_MAG_Sensor(*dev_i2c)),
accelerometer(new LSM303AGR_ACC_Sensor(*dev_i2c)),
pt_sensor(new LPS22HBSensor(*dev_i2c)),
- acc_gyro(new LSM6DSLSensor(*dev_i2c))
+ acc_gyro(new LSM6DSLSensor(*dev_i2c, IKS01A2_PIN_LSM6DSL_INT1, IKS01A2_PIN_LSM6DSL_INT2))
{
ht_sensor->Init(NULL);
magnetometer->Init(NULL);

X-NUCLEO-IKS01A2 Motion MEMS and Environmental Sensor