ELEC2645 (2015/16) / Mbed 2 deprecated Targetpractice

Dependencies:   N5110 mbed

Revision:
1:412410b64834
Parent:
0:6acec66462d7
Child:
2:eb6d811f9256
diff -r 6acec66462d7 -r 412410b64834 main.h
--- a/main.h	Wed May 04 21:43:33 2016 +0000
+++ b/main.h	Thu May 05 00:14:08 2016 +0000
@@ -3,17 +3,6 @@
 // Can also power (VCC) directly from VOUT (3.3 V) -
 // Can give better performance due to current limitation from GPIO pin
 
-/* Joystick
- 
-Example code of how to read a joystick
- 
-https://www.sparkfun.com/products/9032
- 
-Craig A. Evans
-7 March 2015
-*/
- 
-// change this to alter tolerance of joystick direction
 #define DIRECTION_TOLERANCE 0.05
  
 // connections for joystick
@@ -60,26 +49,26 @@
 
 
 int printFlag = 0;
-int x1=42;
-int y1=19;
-int x2=42;
-int y2=29;
-int x3=37;
-int y3=24;
-int x4=47;
-int y4=24;
-int x5=10;
-int y5=20;
-int x6=40;
-int y6=30;
-int x7=30;
-int y7=10;
-int x8=60;
-int y8=15;
-int opentimes=0;
-int r2=2;
-int colour=0;
-int colour1=0;
-int colour2=0;
-int colour3=0;
-int moves=0;
\ No newline at end of file
+int x1=42;       //x value of the start point to draw the line1 of the crosshair
+int y1=19;       //y value of the start point to draw the line1 of the crosshair
+int x2=42;       //x value of the end point to draw the line1 of the crosshair
+int y2=29;       //y value of the end point to draw the line1 of the crosshair
+int x3=37;       //x value of the start point to draw the line2 of the crosshair
+int y3=24;       //y value of the start point to draw the line2 of the crosshair
+int x4=47;       //x value of the end point to draw the line2 of the crosshair
+int y4=24;       //y value of the end point to draw the line2 of the crosshair
+int x5=10;       //x value for target 1
+int y5=20;       //y value for target 1
+int x6=40;       //x value for target 2
+int y6=30;       //y value for target 2
+int x7=30;       //x value for target 3
+int y7=10;       //y value for target 3
+int x8=60;       //x value for target 4
+int y8=15;       //y value for target 4
+int opentimes=0; //the  value to draw a circle in the opening animation
+int r2=2;        //the  value of radius to darw the circle in the opening animation
+int colour=0;    //the  value of clour of the target1
+int colour1=0;   //the  value of clour of the target1
+int colour2=0;   //the  value of clour of the target1
+int colour3=0;   //the  value of clour of the target1
+int moves=0;     //the value of the progress bar
\ No newline at end of file