
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
main.cpp
- Committer:
- mgolino
- Date:
- 2015-10-23
- Revision:
- 0:fc5acbf5061c
File content as of revision 0:fc5acbf5061c:
#include "mbed.h" #include "MAX4466.h" Serial pc (USBTX, USBRX); MAX4466 mic(p20); int main() { while (1) { mic.volume_indicator(); pc.printf("\n\r Level is %f", mic.sound_level()); } }