1D-Pong game based on a LED strip with 150 LPD6803-controlled pixels. Game keeps score for 'best-of-21' game. Written for KL25Z

Dependencies:   MODSERIAL mbed

Revision:
21:a554229e884b
Child:
26:448ee3b0b481
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/GameButton.h	Tue Aug 27 18:54:15 2013 +0000
@@ -0,0 +1,24 @@
+#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
\ No newline at end of file