Version of Robotron arcade game using LPC1768, a Gameduino shield, a serial EEPROM (for high scores), two microswitch joysticks and two buttons plus a box to put it in. 20 levels of mayhem.
Dependencies: 25LCxxx_SPI CommonTypes Gameduino mbed
Diff: HighScoreTable.h
- Revision:
- 3:a6a0cd726ca0
- Parent:
- 2:bb0f631a6068
- Child:
- 17:194789db2215
--- a/HighScoreTable.h Thu Jun 06 20:11:28 2013 +0000 +++ b/HighScoreTable.h Fri Jun 07 20:29:59 2013 +0000 @@ -12,7 +12,7 @@ #include "Types.h" #include "PlayerName.h" - #include "SPIEEPROM.h" + #include "Ser25lcxxx.h" // serial EEPROM routines. Also work for 25AAxxx EEPROMs. class HighScoreTable { @@ -21,8 +21,8 @@ /***************/ /* CONSTRUCTOR */ /***************/ - // Pass pointer to an SPI EEPROM which contains the high scores. - HighScoreTable( SPIEEPROM *e ); + // Pass pointer to an SPI EEPROM which contains the high scores. + HighScoreTable( Ser25LCxxx *e ); /**************/ /* DESTRUCTOR */ @@ -32,7 +32,7 @@ /***************************************/ /* GET EEPROM USED BY HIGH SCORE TABLE */ /***************************************/ - SPIEEPROM *GetEEPROM( void ) const { + Ser25LCxxx *GetEEPROM( void ) const { return eeprom; } @@ -50,7 +50,7 @@ // Returns true if EEPROM is valid. bool EEPROMValid( void ); - /*************************/ + /*************************/ /* GET CAPACITY OF TABLE */ /*************************/ // Returns capacity of table. @@ -96,7 +96,7 @@ }; // Pointer to EEPROM that holds high scores. - SPIEEPROM *eeprom; + Ser25LCxxx *eeprom; /****************************/ /* WRITE DEFAULTS TO EEPROM */