![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Demo Day SSL using 3 microphones and KL25z
Dependencies: Multi_WS2811_Mic FastAnalogIn USBDevice mbed
Diff: main.cpp
- Revision:
- 0:5cb897285e00
- Child:
- 1:56a68eaa1129
diff -r 000000000000 -r 5cb897285e00 main.cpp --- /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