A retro gaming programme, designed for use on a portable embedded system. Incorporates power saving techniques.
Dependencies: ConfigFile N5110 PowerControl beep mbed
Diff: tower.h
- Revision:
- 55:bb4f6cc196c8
- Parent:
- 54:8180eec1656d
- Child:
- 57:bd8e064020fc
--- a/tower.h Fri May 01 22:07:05 2015 +0000 +++ b/tower.h Fri May 01 23:12:52 2015 +0000 @@ -3,13 +3,14 @@ #define DIRECTION_TOLERANCE 0.05 #include "ConfigFile.h" +//VCC,SCE,RST,D/C,MOSI,SCLK,LED - set pins for LCD +N5110 lcd(p7,p8,p9,p10,p11,p13,p22); + +//config file declaration LocalFileSystem local("local"); ConfigFile cfg; -//VCC,SCE,RST,D/C,MOSI,SCLK,LED - set pins for LCD -N5110 lcd(p7,p8,p9,p10,p11,p13,p22); - - +//serial for debugging Serial serial(USBTX, USBRX); //timers to check state of buttons @@ -60,9 +61,9 @@ int highScore3; //global char arrays to store initials/score -char player1initials[14] = {"1.AAA.....00"}; -char player2initials[14] = {"2.BBB.....00"}; -char player3initials[14] = {"3.CCC.....00"}; +char player1initials[14] = {"1.AAA.....0"}; +char player2initials[14] = {"2.BBB.....0"}; +char player3initials[14] = {"3.CCC.....0"}; //difficulty variable - hazards fall at 2 pixels per refresh int fall = 2;