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@6:7c72902a735f, 2018-04-18 (annotated)
- Committer:
- Nurchu
- Date:
- Wed Apr 18 15:00:46 2018 +0000
- Revision:
- 6:7c72902a735f
- Parent:
- 2:dc046ff72566
- Child:
- 8:0222df74596e
Added Microphone to uint8_t stub
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 | 2:dc046ff72566 | 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 | }; |