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.
MAX4466.h
00001 #ifndef MBED_MIC_H 00002 #define MBED_MIC_H 00003 00004 #include "mbed.h" 00005 00006 class MAX4466 { 00007 00008 public: 00009 00010 MAX4466(PinName pin); 00011 00012 void led_array(float x); 00013 00014 void volume_indicator(); 00015 00016 float calibration(); 00017 00018 float sound_level(); 00019 float instantlevel(); 00020 00021 protected: 00022 AnalogIn _pin; 00023 BusOut _led1, _led2, _led3, _led4; 00024 float _value; 00025 float _sum; 00026 float _average; 00027 int _count; 00028 float _sample; 00029 Timer _t; 00030 Timer _t1; 00031 }; 00032 00033 #endif
Generated on Fri Jul 22 2022 09:01:16 by
1.7.2