A retro gaming programme, designed for use on a portable embedded system. Incorporates power saving techniques.

Dependencies:   ConfigFile N5110 PowerControl beep mbed

Files at this revision

API Documentation at this revision

Comitter:
el13drt
Date:
Sat Apr 18 05:13:05 2015 +0000
Parent:
18:c38e1966d870
Child:
20:993c12c6a7bc
Commit message:
Bugs: FX option; Debounce; Store memory; Power Down

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
tower.h Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Sat Apr 18 01:27:03 2015 +0000
+++ b/main.cpp	Sat Apr 18 05:13:05 2015 +0000
@@ -39,16 +39,19 @@
         // if 'Play Game' selected
         if ((mainOption == 0)&&(buttonFlagA)) {
             buttonFlagA = 0;
+            buttonFlagB = 0;
             game(exitFlag, exitOption);//actual game
         }
         // if 'Scores' selected
         if((mainOption == 1)&&(buttonFlagA)) {
             buttonFlagA = 0;
+            buttonFlagB = 0;
             scores();
         }
         // if 'option' selected
         if((mainOption == 2)&&(buttonFlagA)) {
             buttonFlagA = 0;
+            buttonFlagB = 0;
             optionsMenu();
         }
         sleep();
--- a/tower.h	Sat Apr 18 01:27:03 2015 +0000
+++ b/tower.h	Sat Apr 18 05:13:05 2015 +0000
@@ -783,7 +783,7 @@
         if(buttonFlagA) {
             buttonFlagA =0;
             FX = 0;
-            serial.printf("FX = %d",FX);
+            serial.printf("FX = %d\n",FX);
         }
     }
     // 'OFF' option 2
@@ -795,7 +795,7 @@
         if(buttonFlagA) {
             buttonFlagA =0;
             FX = 1;
-            serial.printf("FX = %d",FX);
+            serial.printf("FX = %d\n",FX);
         }
     }
 }