Power Grid Board Game Timer. Acts like a chess timer for 3-6 people. Uses an ADXL accelerometer to pause the timer and change players. Uses an LCD screen to prompt the players for input, read that input, and change between rounds.

Dependencies:   DmTouch_UniGraphic UniGraphic-forLdelaney17FinalProject mbed

Revision:
3:22c644f16365
Parent:
2:e6788e73de54
Child:
4:e14c199c2466
--- a/main.cpp	Wed Jan 25 06:50:57 2017 +0000
+++ b/main.cpp	Wed Jan 25 07:08:48 2017 +0000
@@ -24,6 +24,7 @@
 Timer current_clock;
 vector<float> player_timers;
 vector<int> player_order;
+float round_bonus_time;
 
 void setup();
 
@@ -54,11 +55,17 @@
         led = !led; // toggle led
         if (acc_int){
             int buf = get_int_type();
-            if (buf == 1)
+            if (buf == 1){
+                //toggle_pause();
                 led_blue = 1;
-            else if (buf == 2)
-                led_blue = 0;    
+            }
+            else if (buf == 2){
+                //next_player();
+                led_blue = 0;   
+            } 
         }
+        //update_timer()
+        //update_clock()
         wait(0.2f);
         pc.printf("completed a loop through main \r\n");
         wait(0.2f);