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
Microphone.h@8:0222df74596e, 2018-04-18 (annotated)
- Committer:
 - Nurchu
 - Date:
 - Wed Apr 18 15:22:38 2018 +0000
 - Revision:
 - 8:0222df74596e
 - Parent:
 - 6:7c72902a735f
 - Child:
 - 20:e068469ffb89
 
Fixed some compile errors
Who changed what in which revision?
| User | Revision | Line number | New contents of line | 
|---|---|---|---|
| Nurchu | 2:dc046ff72566 | 1 | #include "mbed.h" | 
| Nurchu | 2:dc046ff72566 | 2 | |
| Nurchu | 2:dc046ff72566 | 3 | class Microphone | 
| Nurchu | 2:dc046ff72566 | 4 | { | 
| Nurchu | 6:7c72902a735f | 5 | public: | 
| Nurchu | 8:0222df74596e | 6 | Microphone(PinName pin); | 
| Nurchu | 6:7c72902a735f | 7 | |
| Nurchu | 2:dc046ff72566 | 8 | float read(); | 
| Nurchu | 2:dc046ff72566 | 9 | operator float (); | 
| Nurchu | 6:7c72902a735f | 10 | uint8_t getData(); | 
| Nurchu | 6:7c72902a735f | 11 | |
| Nurchu | 6:7c72902a735f | 12 | private: | 
| Nurchu | 2:dc046ff72566 | 13 | AnalogIn _pin; | 
| Nurchu | 2:dc046ff72566 | 14 | }; |