Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: Joystick N5110 SDFileSystem beep fsmMenu mbed
Fork of SnakeProjectRev1 by
Diff: main.cpp
- Revision:
- 21:e03461ea23e9
- Parent:
- 20:f634b1060981
- Child:
- 22:195d66c61bf3
--- a/main.cpp Thu May 05 13:31:19 2016 +0000
+++ b/main.cpp Thu May 05 14:19:50 2016 +0000
@@ -5,34 +5,14 @@
*/
-#include "mbed.h"
#include "main.h"
-#include "N5110.h"
-#include "beep.h"
-#include "SDFileSystem.h"
-#include "Joystick.h"
-#include "fsmMenu.h"
-// VCC, SCE, RST, D/C, MOSI, SCLK, LED
-N5110 lcd (PTD3, PTA0 , PTC4 , PTD0 , PTD2 , PTD1 , PTC3);
-// Can also power (VCC) directly from VOUT (3.3 V) -
-// Can give better performance due to current limitation from GPIO pin
-
-// Connections to SD card holder on K64F (SPI interface)
-SDFileSystem sd(PTE3, PTE1, PTE2, PTE4, "sd"); // MOSI, MISO, SCK, CS
-
-/// Serial for debug
+// Serial for debug
Serial serial(USBTX,USBRX);
-Ticker pollJoystick;
-Ticker gameTicker;
-
-
FILE *fp; // this is our file pointer
-void timer_isr();
-void rb_isr();
-void lb_isr();
+
int main()
{
