This is the description
Dependencies: mbed Menu Joystick
Diff: Sound/Sound.h
- Revision:
- 0:59cbc5800eb6
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Sound/Sound.h Mon Apr 27 14:04:30 2020 +0000 @@ -0,0 +1,25 @@ +#ifndef SOUND_H +#define SOUND_H +#include <bitset> +namespace mbed +{ +class AnalogIn; +class InterruptIn; +class PwmOut; +class Timeout; +} + +class Sound +{ +public: + Sound(); + ~Sound(); + void tone(float frequency, float duration); + void welcome(); +private: + void init_buttons(); + void tone_off(); + mbed::Timeout*_timeout; + mbed::PwmOut *_buzzer; +}; +#endif \ No newline at end of file