Dependencies:   MCP23S17 RPG SDFileSystem TextLCD mbed wave_player

Fork of MCP23S17_Basic_IO_Demo by jim hamblen

Files at this revision

API Documentation at this revision

Comitter:
rpere
Date:
Tue Mar 05 16:30:49 2013 +0000
Parent:
3:accf08e39ba0
Commit message:
Reduced display times for "Get ready" and "GO" strings

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Mon Mar 04 20:00:26 2013 +0000
+++ b/main.cpp	Tue Mar 05 16:30:49 2013 +0000
@@ -63,7 +63,7 @@
 short menuBuffer = 0;
 
 // Difficulty settings
-double timeoutVals[3] = { 2,  1.5, 1 };
+double timeoutVals[3] = { 2,  1.5, 1.2 };
 double delayVals[3] = { 0.5, 0.3, 0.1};
 short  victoryVals[3] = {4 , 6, 8};
 
@@ -234,11 +234,11 @@
     lcd.cls();
     lcd.locate(0,0);
     lcd.printf("Get ready...");
-    wait(timeout + 0.5 );
+    wait(timeout);
     lcd.cls();
     lcd.locate(0,0);
     lcd.printf("GO!!!");
-    wait(delay + 0.3);
+    wait(delay);
 }
 
 int listenSequence()