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-09-07
- Revision:
- 26:448ee3b0b481
- Parent:
- 21:a554229e884b
File content as of revision 26:448ee3b0b481:
#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); private: PinName inpin; }; #endif