2016 catch robo

Dependencies:   mbed WiiClassicController_kai

lancer_speaker/lancer_speaker.h

Committer:
kambara1415
Date:
2019-06-24
Revision:
0:7d81654c5ce8

File content as of revision 0:7d81654c5ce8:

#ifndef LANCER_SPEAKER_H
#define LANCER_SPEAKER_H

class Speaker
{
public:
    Speaker(PinName);
    void tone(int, int);
    void noTone();
    void flip();
private:
    DigitalOut _pin;
    Ticker _time;
    int _count, _duration, _freq;
};

#endif