1D-Pong game based on a LED strip with 150 LPD6803-controlled pixels. Game keeps score for 'best-of-21' game. Written for KL25Z
GameButton.h
- Committer:
- vsluiter
- Date:
- 2013-08-27
- Revision:
- 21:a554229e884b
- Child:
- 26:448ee3b0b481
File content as of revision 21:a554229e884b:
#ifndef _GAMEBUTTON_H_ #define _GAMEBUTTON_H_ #include "mbed.h" class GameButton { public: GameButton(){}; GameButton(PinName pin, float time); bool pushflag; bool getTimeoutActive(void); protected: virtual void pushhandlercallback(void){}; private: InterruptIn *intpin; Timeout timeout; float m_time; bool m_timeoutactive; void TimeOutHandler(void); virtual void PushHandler(void); }; #endif