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.
microphone.h
00001 #ifndef _MICROPHONE_H_ 00002 #define _MICROPHONE_H_ 00003 00004 #include "mbed.h" 00005 00006 class Microphone 00007 { 00008 private: 00009 bool isStarted; 00010 public: 00011 // Constructor. 00012 Microphone(); 00013 00014 // Begins sampling data from the microphone using timer 3. 00015 void start(); 00016 00017 // Ends sampling (UNTESTED!) 00018 void stop(); 00019 00020 // Returns a signed 8-bit integer containing the latest data from the microphone. 00021 signed char read(); 00022 }; 00023 00024 #endif
Generated on Wed Jul 13 2022 06:29:03 by
1.7.2