A retro gaming programme, designed for use on a portable embedded system. Incorporates power saving techniques.
Dependencies: ConfigFile N5110 PowerControl beep mbed
Revision 42:2eba0c075a89, committed 2015-04-23
- Comitter:
- el13drt
- Date:
- Thu Apr 23 18:52:58 2015 +0000
- Parent:
- 41:07d2afbfd3f4
- Child:
- 43:cf3f34502b2a
- Commit message:
- post led
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 Thu Apr 23 18:46:16 2015 +0000 +++ b/main.cpp Thu Apr 23 18:52:58 2015 +0000 @@ -14,7 +14,7 @@ int main() { - ledR = 1;//power LED on + ledY = 1;//power LED on randomise();//randomises falling hazards (initial values only) calibrateJoystick();//get centred values of joystick pollJoystick.attach(&updateJoystick,1.0/10.0);//read joystick 10 times per second
--- a/tower.h Thu Apr 23 18:46:16 2015 +0000 +++ b/tower.h Thu Apr 23 18:52:58 2015 +0000 @@ -533,13 +533,13 @@ void actionButtons() { if((FX == 0)&&(buttonA||buttonB)) { - ledY = 1; + ledR = 1; buzzer.beep(1500,0.3); } if (buttonA || buttonB) { - ledY = 1; + ledR = 1; } else { - ledY = 0; + ledR = 0; } }