A retro gaming programme, designed for use on a portable embedded system. Incorporates power saving techniques.
Dependencies: ConfigFile N5110 PowerControl beep mbed
Revision 36:b02b7935475a, committed 2015-04-21
- Comitter:
- el13drt
- Date:
- Tue Apr 21 21:32:27 2015 +0000
- Parent:
- 35:9f55326c1b0a
- Child:
- 37:eda13afa2923
- Commit message:
- 22:32 works
Changed in this revision
tower.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/tower.h Tue Apr 21 21:17:05 2015 +0000 +++ b/tower.h Tue Apr 21 21:32:27 2015 +0000 @@ -961,29 +961,21 @@ serial.printf(" Unsupported direction\n"); } - x=fsm[state1].output1; - lcd.printChar(x,25,26); - y=fsm[state1].output1; - lcd.printChar(y,37,26); - z=fsm[state1].output1; - lcd.printChar(z,49,26); - - ////if initial 3 display selected character -// if (initial == 0) { -// char x; -// x=fsm[state1].output1; -// lcd.printChar(x,25,26); -// } -// //if initial 1 display selected character -// if(initial == 1) { -// y=fsm[state2].output2; -// lcd.printChar(y,37,26); -// } -// //if initial 2 display selected character -// if(initial == 2) { -// z=fsm[state3].output3; -// lcd.printChar(z,49,26); -// } + //if initial 3 display selected character + if (initial == 0) { + x=fsm[state1].output1; + lcd.printChar(x,25,26); + } + //if initial 1 display selected character + if(initial == 1) { + y=fsm[state2].output2; + lcd.printChar(y,37,26); + } + //if initial 2 display selected character + if(initial == 2) { + z=fsm[state3].output3; + lcd.printChar(z,49,26); + } if(buttonFlagA) { buttonFlagA = 0;