A retro gaming programme, designed for use on a portable embedded system. Incorporates power saving techniques.
Dependencies: ConfigFile N5110 PowerControl beep mbed
Revision 41:07d2afbfd3f4, committed 2015-04-23
- Comitter:
- el13drt
- Date:
- Thu Apr 23 18:46:16 2015 +0000
- Parent:
- 40:56ab6d368e9b
- Child:
- 42:2eba0c075a89
- Commit message:
- LED bug
Changed in this revision
tower.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/tower.h Thu Apr 23 18:41:32 2015 +0000 +++ b/tower.h Thu Apr 23 18:46:16 2015 +0000 @@ -1272,9 +1272,9 @@ if ( fabs(joystick.y) < DIRECTION_TOLERANCE && fabs(joystick.x) < DIRECTION_TOLERANCE) { joystick.direction = CENTRE; } else if ( joystick.y > DIRECTION_TOLERANCE && fabs(joystick.x) < DIRECTION_TOLERANCE) { - joystick.direction = UP; + joystick.direction = DOWN; } else if ( joystick.y < DIRECTION_TOLERANCE && fabs(joystick.x) < DIRECTION_TOLERANCE) { - joystick.direction = DOWN; + joystick.direction = UP; } else if ( joystick.x > DIRECTION_TOLERANCE && fabs(joystick.y) < DIRECTION_TOLERANCE) { joystick.direction = RIGHT; } else if ( joystick.x < DIRECTION_TOLERANCE && fabs(joystick.y) < DIRECTION_TOLERANCE) {