This is the description
Dependencies: mbed Menu Joystick
Sound/Sound.h@0:59cbc5800eb6, 2020-04-27 (annotated)
- Committer:
- mrkang
- Date:
- Mon Apr 27 14:04:30 2020 +0000
- Revision:
- 0:59cbc5800eb6
Starwars
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
mrkang | 0:59cbc5800eb6 | 1 | #ifndef SOUND_H |
mrkang | 0:59cbc5800eb6 | 2 | #define SOUND_H |
mrkang | 0:59cbc5800eb6 | 3 | #include <bitset> |
mrkang | 0:59cbc5800eb6 | 4 | namespace mbed |
mrkang | 0:59cbc5800eb6 | 5 | { |
mrkang | 0:59cbc5800eb6 | 6 | class AnalogIn; |
mrkang | 0:59cbc5800eb6 | 7 | class InterruptIn; |
mrkang | 0:59cbc5800eb6 | 8 | class PwmOut; |
mrkang | 0:59cbc5800eb6 | 9 | class Timeout; |
mrkang | 0:59cbc5800eb6 | 10 | } |
mrkang | 0:59cbc5800eb6 | 11 | |
mrkang | 0:59cbc5800eb6 | 12 | class Sound |
mrkang | 0:59cbc5800eb6 | 13 | { |
mrkang | 0:59cbc5800eb6 | 14 | public: |
mrkang | 0:59cbc5800eb6 | 15 | Sound(); |
mrkang | 0:59cbc5800eb6 | 16 | ~Sound(); |
mrkang | 0:59cbc5800eb6 | 17 | void tone(float frequency, float duration); |
mrkang | 0:59cbc5800eb6 | 18 | void welcome(); |
mrkang | 0:59cbc5800eb6 | 19 | private: |
mrkang | 0:59cbc5800eb6 | 20 | void init_buttons(); |
mrkang | 0:59cbc5800eb6 | 21 | void tone_off(); |
mrkang | 0:59cbc5800eb6 | 22 | mbed::Timeout*_timeout; |
mrkang | 0:59cbc5800eb6 | 23 | mbed::PwmOut *_buzzer; |
mrkang | 0:59cbc5800eb6 | 24 | }; |
mrkang | 0:59cbc5800eb6 | 25 | #endif |