Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: MPU9250_SPI SDFileSystem XBeeLib
Diff: main.cpp
- Revision:
- 4:56e903769e94
- Parent:
- 3:26aeff25f610
- Child:
- 5:18e89e309715
diff -r 26aeff25f610 -r 56e903769e94 main.cpp
--- 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();
     }
    
