Antonio De Lima Fernandes / Mbed 2 deprecated microphone

Dependencies:   Multi_WS2811_Mic FastAnalogIn USBDevice mbed

Files at this revision

API Documentation at this revision

Comitter:
antoniorohit
Date:
Sat Nov 22 18:55:28 2014 +0000
Child:
1:56a68eaa1129
Commit message:
First Rev of Demo Day Code

Changed in this revision

CMSIS_DSP_401.lib Show annotated file Show diff for this revision Revisions of this file
FastAnalogIn.lib Show annotated file Show diff for this revision Revisions of this file
USBDevice.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/CMSIS_DSP_401.lib	Sat Nov 22 18:55:28 2014 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/emh203/code/CMSIS_DSP_401/#3d9c67d97d6f
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/FastAnalogIn.lib	Sat Nov 22 18:55:28 2014 +0000
@@ -0,0 +1,1 @@
+http://developer.mbed.org/users/Sissors/code/FastAnalogIn/#afc3b84dbbd6
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/USBDevice.lib	Sat Nov 22 18:55:28 2014 +0000
@@ -0,0 +1,1 @@
+http://developer.mbed.org/users/mbed_official/code/USBDevice/#9506bdafbf94
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Sat Nov 22 18:55:28 2014 +0000
@@ -0,0 +1,27 @@
+#include "mbed.h"
+#include "FastAnalogIn.h"
+#include "USBSerial.h"
+
+FastAnalogIn mic0(A2, 0);
+FastAnalogIn mic1(A3, 0);
+Serial pc(USBTX, USBRX);
+ 
+int main(void) {
+    uint16_t i = 0;
+    float buff0[1000];
+    float buff1[1000];
+    pc.baud(115200);
+    
+    while (true){
+        for(i = 0; i < 500; i++){
+//            buff0[i] = (mic0.read());
+//            buff1[i] = (mic1.read());
+            pc.printf("%0.3f,%0.3f\n", (mic0.read()), (mic1.read()));
+
+        }
+//        for(i = 0; i < 500; i++){
+//            pc.printf("%.3f,%.3f\n", (buff0[i]), (buff1[i]));
+//        }
+
+    }
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Sat Nov 22 18:55:28 2014 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/031413cf7a89
\ No newline at end of file