Meurig Phillips / Mbed 2 deprecated SnakeProjectRev1

Dependencies:   Joystick N5110 SDFileSystem beep fsmMenu mbed

Revision:
11:f8478bc749e0
Parent:
10:7820b46476ea
Child:
12:825a402d230f
--- a/main.cpp	Sun May 01 11:11:19 2016 +0000
+++ b/main.cpp	Sun May 01 12:15:09 2016 +0000
@@ -1,6 +1,7 @@
 
  
 #include "mbed.h"
+#include "main.h"
 #include "N5110.h"
 #include "beep.h"
 #include "SDFileSystem.h"
@@ -14,12 +15,12 @@
 // Connections to SD card holder on K64F (SPI interface)
 SDFileSystem sd(PTE3, PTE1, PTE2, PTE4, "sd"); // MOSI, MISO, SCK, CS
  
-DigitalOut greenLed(PTC2);
-DigitalOut redLed(PTA2);
+//DigitalOut greenLed(PTC2);
+//DigitalOut redLed(PTA2);
 
 //Beep buzzer(PTA1);
 
-// timer to regularly read the joystick
+/* // timer to regularly read the joystick
 Ticker pollJoystick;
 // Serial for debug
 Serial serial(USBTX,USBRX);
@@ -35,8 +36,6 @@
     centre,
 };
 CurrentDirection currentDirection = centre; /// intialise direction at beginning
-  
-int pixels[84][48];
 
 int randomX =  rand() % 83 + 1;     // randomX in the range 1 to 81
 int randomY =  rand() % 47 + 1;     // randomY in the range 1 to 47
@@ -68,14 +67,13 @@
 void generateFood();
 void newFruitXY();
 void moveSnake();
-void greenLedFlash();
 void hardWall();
 void specialMap();
 void wrapAround();
 void scoreCalculation();
 void gameOver();
 void initSnakeTail();
-void snakeIntro();
+void snakeIntro(); */
 
 FILE *fp; // this is our file pointer