Los Putacos / Mbed OS WearableDevice_Nucleo

Dependencies:   MPU9250_SPI SDFileSystem XBeeLib

Revision:
4:56e903769e94
Parent:
3:26aeff25f610
Child:
5:18e89e309715
--- a/main.cpp	Thu Oct 12 00:45:41 2017 +0000
+++ b/main.cpp	Thu Oct 12 09:37:20 2017 +0000
@@ -28,6 +28,8 @@
 
 //Analog Input
 
+AnalogIn   micro(A0);
+
 //Digital Input
 
 DigitalOut led1(LED1);
@@ -75,10 +77,25 @@
 //-----------------------------------------------------------------
 
 //-----------------------------------------------------------------
+void initMPU9250()
+{  
+ // Initialize MPU9250 device
+ // wake up device
+  writeByte(MPU9250_ADDRESS, PWR_MGMT_1, 0x00); // Clear sleep mode bit (6), enable all sensors 
+  
+}
+  
+//-----------------------------------------------------------------
+
+//-----------------------------------------------------------------
 int main()
 {
     Setup(); // Initial setups
     
+    
+    //Reading the analog input (Microphone)  array = micro.read_u16();
+    
+    
     while (true) {
         queue.dispatch();
     }