AirsoftTimer software based on mbed
Dependencies: mbed TextLCD keypad
Diff: games/ShowBuzzer.h
- Revision:
- 11:50572814f73e
- Child:
- 12:22e9ef610ea2
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/games/ShowBuzzer.h Wed Dec 31 15:27:43 2014 +0000 @@ -0,0 +1,27 @@ + +#ifndef SHOWBUZZER_H +#define SHOWBUZZER_H + +#include "Game.h" + +class ShowBuzzer : public Game{ + + public: + ShowBuzzer(Board* board); + virtual void run(); + + private: + enum Team {TEAM_A, TEAM_B}; + Team waitForButtonPress(); + void setLeds(Team team); + void setDisplay(Team team); + void playSound(); + void newRound(); + uint32_t keyPressed(uint32_t key); + + void playCorrect(); + void playWrong(); +}; + + +#endif \ No newline at end of file