Demo for LSM6DS3

Dependencies:   LSM6DS3 mbed

Fork of LSM9DS1_Demo by Eugene Gonzalez

Revision:
3:c450734baa8b
Parent:
1:acf696b18c52
--- a/main.cpp	Thu Jun 16 20:32:55 2016 +0000
+++ b/main.cpp	Mon Jun 20 19:16:14 2016 +0000
@@ -16,7 +16,15 @@
 {
     // Use the begin() function to initialize the LSM9DS0 library.
     // You can either call it with no parameters (the easy way):
-    uint16_t status = imu.begin();
+    // SLEEP
+    //uint16_t status = imu.begin(imu.G_SCALE_245DPS, imu.A_SCALE_2G,
+//                                imu.G_POWER_DOWN, imu.A_POWER_DOWN);
+    // LOWEST
+    //uint16_t status = imu.begin(imu.G_SCALE_245DPS, imu.A_SCALE_2G,
+//                                imu.G_ODR_13_BW_0, imu.A_ODR_13);
+    // HIGHEST
+    uint16_t status = imu.begin(imu.G_SCALE_2000DPS, imu.A_SCALE_8G,
+                                imu.G_ODR_1660, imu.A_ODR_6660);
 
     //Make sure communication is working
     pc.printf("LSM6DS3 WHO_AM_I's returned: 0x%X\r\n", status);