Revenge of the Mouse

Dependencies:   4DGL-uLCD-SE EthernetInterface Game_Synchronizer LCD_fonts MMA8452 SDFileSystem mbed-rtos mbed wave_player

Fork of 2035_Tanks_Shell by ECE2035 Spring 2015 TA

Revision:
1:0589ea36661b
Parent:
0:899c85cd266f
Child:
2:c358ad9aedc4
--- a/main.cpp	Tue Oct 06 01:54:18 2015 +0000
+++ b/main.cpp	Wed Oct 07 00:43:25 2015 +0000
@@ -9,19 +9,22 @@
 
  
 int main (void) {
-
+    int* buttons;
+    
+    pc.printf("\033[2J\033[0;0H");
     pc.printf("I'm alive! Player 1\n");
 
     uLCD.init();
     pc.printf("Initialized...\n");
     while(1) {
-        uLCD.set_button_state(1,0,1,0,1);
         uLCD.background_color(BLUE);
         uLCD.cls();
         uLCD.update();
         pc.printf("Updated. \n");
-        wait(1);
-        pc.printf("\033[2J\033[0;0H");
+        buttons = uLCD.get_button_state();
+        pc.printf("Button State: %x %x %x %x %x\n", buttons[0], buttons[1], buttons[2], buttons[3], buttons[4]);
+        wait(3);
+        //pc.printf("\033[2J\033[0;0H");
     }
     //
     //uLCD.line(0,0,200,200,BLACK);