
elec350
Fork of elec350 by
microphone.h@9:3801e1da153b, 2015-10-21 (annotated)
- Committer:
- rmerrisonhort
- Date:
- Wed Oct 21 19:20:17 2015 +0000
- Revision:
- 9:3801e1da153b
- Child:
- 10:021f19a9861f
Added microphone class.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
rmerrisonhort | 9:3801e1da153b | 1 | #ifndef _MICROPHONE_H_ |
rmerrisonhort | 9:3801e1da153b | 2 | #define _MICROPHONE_H_ |
rmerrisonhort | 9:3801e1da153b | 3 | |
rmerrisonhort | 9:3801e1da153b | 4 | #include "mbed.h" |
rmerrisonhort | 9:3801e1da153b | 5 | |
rmerrisonhort | 9:3801e1da153b | 6 | class Microphone |
rmerrisonhort | 9:3801e1da153b | 7 | { |
rmerrisonhort | 9:3801e1da153b | 8 | private: |
rmerrisonhort | 9:3801e1da153b | 9 | bool isStarted; |
rmerrisonhort | 9:3801e1da153b | 10 | public: |
rmerrisonhort | 9:3801e1da153b | 11 | Microphone(); |
rmerrisonhort | 9:3801e1da153b | 12 | void start(); |
rmerrisonhort | 9:3801e1da153b | 13 | void stop(); |
rmerrisonhort | 9:3801e1da153b | 14 | int8_t read(); |
rmerrisonhort | 9:3801e1da153b | 15 | }; |
rmerrisonhort | 9:3801e1da153b | 16 | |
rmerrisonhort | 9:3801e1da153b | 17 | #endif |