multiplayer pong game for LPC 1768

Dependencies:   mbed MbedJSONValue mbed-rtos Adafruit_ST7735 Adafruit_GFX EthernetInterface DebouncedInterrupt

Revision:
26:ebadab157abe
Parent:
24:05eb0b0ab554
Child:
27:fcc5fee18a24
--- a/main.cpp	Mon Nov 16 03:44:23 2020 +0000
+++ b/main.cpp	Mon Nov 16 04:27:47 2020 +0000
@@ -7,7 +7,7 @@
 #include "DebouncedInterrupt.h"
 #include "MbedJSONValue.h"
 
-#define DEBOUNCE 50
+#define DEBOUNCE 25
 
 DebouncedInterrupt leftButton(p21);
 DebouncedInterrupt middleButton(p22);
@@ -30,12 +30,12 @@
 
 void pressLeftGame( void ) {
     sendFlag = 1;
-    moveData--; 
+    moveData -= 5; 
 }
 
 void pressRightGame() {
     sendFlag = 1;
-    moveData++; 
+    moveData += 5; 
 }
  
 int main() {