koubou no program dayo.
Dependencies: WiiClassicController_kai mbed
Diff: lancer_speaker/lancer_speaker.h
- Revision:
- 1:e9020a93ef86
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/lancer_speaker/lancer_speaker.h Fri Sep 02 00:28:49 2016 +0000 @@ -0,0 +1,17 @@ +#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 \ No newline at end of file