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:
26:448ee3b0b481
Parent:
25:3144a392690b
--- a/main.cpp	Tue Sep 03 22:30:16 2013 +0000
+++ b/main.cpp	Sat Sep 07 10:59:26 2013 +0000
@@ -5,7 +5,7 @@
 #define NUMBER_OF_PIXELS 50
 #define PADDLE_LENGTH    5
 #define START_SPEED   19
-#define SPEED_FACTOR  6
+#define SPEED_FACTOR  7
 #define LEFT false
 #define RIGHT true
 
@@ -134,7 +134,7 @@
                     //printf("\n\rleft pushed");
                     pc.printf("L\n\r");
                     buttonleft.pushflag = false;
-                    if(buttonleft.paddlepos <= 0  )
+                    if(buttonleft.paddlepos <= 1  )
                     {
                         paddle.direction = 1;
                         paddle.setSpeed(START_SPEED+(-buttonleft.paddlepos)*SPEED_FACTOR);