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.
Dependencies: mbed 4DGL-uLCD-SE mbed-rtos nRF24L01P
Diff: Microphone.cpp
- Revision:
- 2:dc046ff72566
- Child:
- 6:7c72902a735f
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Microphone.cpp Wed Apr 18 14:40:57 2018 +0000 @@ -0,0 +1,15 @@ +#include "Microphone.h" + +microphone::microphone (PinName pin): + _pin(pin) +{} + +float microphone::read() +{ + return _pin.read(); +} + +inline microphone::operator float () +{ + return _pin.read(); +} \ No newline at end of file