Library to control Electret Microphone Amplifier - MAX9814 from adafruit. Allows: To sample analogue voltage to transform into rough sound level. Transfer sound level to visual indicator, volume bar such as 4 LEDs on LPC11U24.

Dependents:   MAX9814_LED_Sound_Indicator

Revision:
3:1a773fb0d7e7
Parent:
2:af2a48ef297c
--- a/MAX9814.h	Sun Nov 02 21:55:31 2014 +0000
+++ b/MAX9814.h	Sun Nov 02 21:58:31 2014 +0000
@@ -3,25 +3,25 @@
     Developed by Andrea Corrado   
 */
 
+/*
+    Example 'main.cpp'
 
-                //EXAMPLE//
-/*
-*#include "mbed.h"
-*#include "MAX9814.h"
-*Serial pc (USBTX, USBRX);
-*
-*MAX9814 mic(p20);
-*
-*int main()
-*{
-*    while (1) {
-*        mic.volume_indicator();
-*        pc.printf("\n\r Level is %f", mic.sound_level());
-*    }
-} */
-                //EXAMPLE//
+#include "mbed.h"
+#include "MAX9814.h"
+Serial pc (USBTX, USBRX);
 
 
+MAX9814 mic(p20);
+
+int main()
+{
+    while (1) {
+        mic.volume_indicator();
+        pc.printf("\n\r Level is %f", mic.sound_level());
+    }
+}
+
+*/
 
 #ifndef MBED_MIC_H
 #define MBED_MIC_H