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.
Fork of ele350 by
microphone.h
- Committer:
- GGHHHH
- Date:
- 2015-11-05
- Revision:
- 3:1ad50b4e51a6
File content as of revision 3:1ad50b4e51a6:
#ifndef _MICROPHONE_H_ #define _MICROPHONE_H_ #include "mbed.h" class Microphone { private: bool isStarted; public: // Constructor. Microphone(); // Begins sampling data from the microphone using timer 3. void start(); // Ends sampling (UNTESTED!) void stop(); // Returns a signed 8-bit integer containing the latest data from the microphone. int8_t read(); }; #endif