Simon: A Memory Game

Dependencies:   4DGL-uLCD-SE PinDetect mbed

Revision:
1:cd222334a4fe
Parent:
0:64ea583d77e2
Child:
2:c92f0e749b94
--- a/main.cpp	Tue Oct 21 04:25:07 2014 +0000
+++ b/main.cpp	Tue Oct 21 14:01:21 2014 +0000
@@ -150,15 +150,13 @@
     
     uLCD.cls();
     uLCD.display_control(PORTRAIT);
-//    uLCD.media_init(); // initialize uSD card
-//    uLCD.set_sector_address(0x20,0xFF);  // address of font file
-//    uLCD.set_font(MEDIAFONT);  // load new font from uSD
     uLCD.color(BLUE);
     uLCD.text_width(2);
     uLCD.text_height(2);
     uLCD.locate(2, 3);
     uLCD.printf("SIMON");
     
+    // start up LED/uLCD sequence
     led1 = 1;
     uLCD.filled_rectangle(0, 0, 63, 40, 0x00CC00);
     wait(0.5);
@@ -197,6 +195,7 @@
     level++;
     levels[level-1] = rand()%4 + 1;
     
+    // display the current level on the uLCD
     uLCD.color(BLUE);
     uLCD.text_width(2);
     uLCD.text_height(2);