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:
- 6:7c72902a735f
- Parent:
- 2:dc046ff72566
- Child:
- 7:0ac1f1ca8aa6
--- a/Microphone.cpp Wed Apr 18 14:53:38 2018 +0000 +++ b/Microphone.cpp Wed Apr 18 15:00:46 2018 +0000 @@ -1,15 +1,20 @@ #include "Microphone.h" -microphone::microphone (PinName pin): +Microphone::Microphone (PinName pin): _pin(pin) {} -float microphone::read() +float Microphone::read() { return _pin.read(); } -inline microphone::operator float () +inline Microphone::operator float () { return _pin.read(); +} + +uint8_t Microphone::getData() +{ + return 0; } \ No newline at end of file