multiplayer pong game for LPC 1768

Dependencies:   mbed MbedJSONValue mbed-rtos Adafruit_ST7735 Adafruit_GFX EthernetInterface DebouncedInterrupt

Revision:
16:7fd48cda0773
Parent:
15:9d90f68e53da
Child:
17:32ae1f106002
--- a/main.cpp	Thu Nov 12 05:51:00 2020 +0000
+++ b/main.cpp	Fri Nov 13 23:02:56 2020 +0000
@@ -2,6 +2,7 @@
 #include "EthernetInterface.h"
 #include "network.h"
 #include "gamestate.h"
+#include "graphics.h" 
 #include "DebouncedInterrupt.h"
 
 #define DEBOUNCE 50
@@ -42,6 +43,7 @@
     rightButton.attach(&pressRight, IRQ_RISE, DEBOUNCE);
     
     GameState *gs = new GameState(); 
+    Graphics *gfx = new Graphics(); 
     
     char toSend[] = "{\"type\": \"connected\", \"data\": \"Ay whats good\"}"; 
     char readTo[256];