Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
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 |
--- 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() {
--- 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;