MAX4466 with ability to take instananeous level of mic
Revision 2:0090c008b13e, committed 2019-04-28
- Comitter:
- collinrusch
- Date:
- Sun Apr 28 20:45:26 2019 +0000
- Parent:
- 0:712373b300a2
- Commit message:
- Added ability to take instantaneous level of microphone at single point in time for speed intensive applications
Changed in this revision
MAX4466.cpp | Show annotated file Show diff for this revision Revisions of this file |
MAX4466.h | Show annotated file Show diff for this revision Revisions of this file |
diff -r 712373b300a2 -r 0090c008b13e MAX4466.cpp --- a/MAX4466.cpp Fri Oct 23 18:37:33 2015 +0000 +++ b/MAX4466.cpp Sun Apr 28 20:45:26 2019 +0000 @@ -104,6 +104,10 @@ return _value; } +float MAX4466::instantlevel(){ + return _pin.read(); + } + //VOLUME INDICATOR FUNCTION: //To be called in main function void MAX4466::volume_indicator() {
diff -r 712373b300a2 -r 0090c008b13e MAX4466.h --- a/MAX4466.h Fri Oct 23 18:37:33 2015 +0000 +++ b/MAX4466.h Sun Apr 28 20:45:26 2019 +0000 @@ -16,6 +16,7 @@ float calibration(); float sound_level(); + float instantlevel(); protected: AnalogIn _pin;