This library sets up and LED volume indication function and reading values from the Electret Microphone - MAX4466 Amplifier
Dependents: MAX4466_Hello_World
MAX4466.h
- Committer:
- mgolino
- Date:
- 2015-10-23
- Revision:
- 0:712373b300a2
File content as of revision 0:712373b300a2:
#ifndef MBED_MIC_H #define MBED_MIC_H #include "mbed.h" class MAX4466 { public: MAX4466(PinName pin); void led_array(float x); void volume_indicator(); float calibration(); float sound_level(); protected: AnalogIn _pin; BusOut _led1, _led2, _led3, _led4; float _value; float _sum; float _average; int _count; float _sample; Timer _t; Timer _t1; }; #endif