updated 7seg controls for new 7 seg boards

Dependencies:   PixelArray WS2812 mbed

Fork of frdm_pong_table_controller by Demo Team

--- a/main.h	Wed Jul 05 15:23:44 2017 +0000
+++ b/main.h	Thu Jul 06 16:16:36 2017 +0000
@@ -1,3 +1,6 @@
+#ifndef MAIN_H
+#define MAIN_H
 #include "mbed.h"
 #include "WS2812.h"
 #include "PixelArray.h"
@@ -46,6 +49,7 @@
 bool seg1A, seg1B, seg1C, seg1D, seg1E, seg1F, seg1G;
 //int seg1Array[122];
 int mainArray[11][122];
+int rand_colors[] = {0x00FF00, 0x7FFF00, 0xFFFF00, 0xFF7F00, 0xFF0000, 0xFE00FF, 0x7F00FF, 0x0000FF, 0x007FFF, 0x00FFFE, 0x00FF7F};
 // Score counters
 int robotScore;
@@ -63,12 +67,19 @@
 void Setup();
 void SetNumberPatterns();
 void SetFigureOf8Pattern();
+void SetCirclePattern();
 void SetLEDArray(int x);
 void WriteScores();
 void HandleGoal(bool hasRobotScored);
 void WritePxScores(int line_num, bool isRobot);
+void WritePxAnimation(int line_num,bool isRobot);
+void WritePxScoresRandomColours(int line_num,bool isRobot);
 void WritePxGoal(unsigned int colour,bool isRobot);
 void HandleWin();
 void GoalAnimation(bool hasRobotScored);
 void WinAnimation(bool isRobotWinner);
-void FigureOf8Animation();
\ No newline at end of file
+void FigureOf8Animation(bool robot, bool player, int numberOfRepitions);
+void CircleAnimation(bool robot, bool player, int numberOfRepitions);
+void DrainAnimation(bool robot, bool robotColour, int robotScore, bool player, bool playerColour, int playerScore);
\ No newline at end of file