This hello world utilizes the basic functions setup in the MAX4466 library to indicate volume levels read from the microphone using the 4 LEDs built in to the MBED

Dependencies:   MAX4466 mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.cpp Source File

main.cpp

00001 #include "mbed.h"
00002 #include "MAX4466.h"
00003 Serial pc (USBTX, USBRX);
00004 
00005 
00006 MAX4466 mic(p20);
00007 
00008 int main()
00009 {
00010     while (1) {
00011         mic.volume_indicator();
00012         pc.printf("\n\r Level is %f", mic.sound_level());
00013     }
00014 }