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:
Mon May 11 22:13:11 2015 +0000
Parent:
79:a92239ce3b20
Commit message:
This is the final commit.

Changed in this revision

N5110.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/N5110.lib	Mon May 11 15:11:18 2015 +0000
+++ b/N5110.lib	Mon May 11 22:13:11 2015 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/eencae/code/N5110/#ba8addc061ea
+http://developer.mbed.org/users/el13drt/code/N5110/#ba8addc061ea
--- a/main.cpp	Mon May 11 15:11:18 2015 +0000
+++ b/main.cpp	Mon May 11 22:13:11 2015 +0000
@@ -1,6 +1,7 @@
 /**
 @file main.cpp
 @brief Program implementation
+@brief "Example code of how to read a joystick" courtesy of Craig A. Evans. Created: 7th March 2015.
 */
 
 #include "PowerControl/PowerControl.h"//for sleep modes
@@ -39,9 +40,7 @@
     //Checks if key matches.
     char *key1 = "Open1";
     char *key2 = "Open2";
-    char *key3 = "Open3";
-    
-    char a[3],b[2],c[2];
+    char *key3 = "Open3";    
     
     int count=0;
 
@@ -102,8 +101,7 @@
             if(player3initials[count]==NULL){
                 break;
             }
-        }
-            
+        }   
         serial.printf("%i\n",highScore3);
     }
 }
@@ -426,7 +424,6 @@
     if(a14 < 10)
         a14 = 10;
     ///If ninja falls below min boundary, Ninja equals min boundary.    
-    
 }
 
 ///Resets configuration values for the game.
@@ -497,7 +494,6 @@
     randY5 = randY5 += fall;
     randY6 = randY6 += fall;
 
-
     ///Loops objects once they've hit the floor.
     if (randY1>=48)
         randY1=0;