This is the description

Dependencies:   mbed Menu Joystick

Sound/Sound.h

Committer:
mrkang
Date:
2020-04-27
Revision:
1:099632454013
Parent:
0:59cbc5800eb6

File content as of revision 1:099632454013:

#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