updated 7seg controls for new 7 seg boards

Dependencies:   PixelArray WS2812 mbed

Fork of frdm_pong_table_controller by Demo Team

Revision:
7:dc6f1f105c52
Parent:
6:5e8e2645cd93
Child:
8:66dac2e00cce
--- a/main.h	Mon Jul 10 11:05:06 2017 +0000
+++ b/main.h	Mon Jul 10 16:06:14 2017 +0000
@@ -32,10 +32,10 @@
 //K64F On-board Switches
 DigitalIn PB1(PTC6);
 DigitalIn PB2(PTA4);
-InterruptIn idleButton(PTB2);
+InterruptIn idleButton(PTC11);
 
 // SERIAL
-Serial pc(USBTX, USBRX); // tx, rx
+RawSerial pc(USBTX, USBRX); // tx, rx
 
 // LED STRIPS
 // See the program page for information on the timing numbers
@@ -61,6 +61,7 @@
 
 // Flags
 volatile int idle_flag = 0;
+volatile int idle_button_pressed = 0;
 
 // Robot Bream Beam value
 double prevRbbValue; // Previous Robot break beam value
@@ -91,6 +92,9 @@
 void ThreeInAnimation(bool robot, bool robotColour,bool player, bool playerColour);
 void ThreeOutAnimation(bool robot, bool robotColour,bool player, bool playerColour);
 
+void PlayToIdleTransition();
+void IdleToPlayTransition();
+
 // ISRs
 void idleButtonISR();