Wall dodging game utilising a joystick and Nokia 5110 LCD display

Dependencies:   N5110 mbed

Auto generated API documentation and code listings for Dodgemania

Classes

Joystick Struct for joystick parameters/inputs
State Struct player highscores
STyp Struct for game menu parameters
Wall Struct for storing properties of moving walls

Code

main.cpp [code]
main.h [code] Header file containing function prototypes, defines and global variables
tones.h [code]

Namespaces

backlight AnalogIn object for 10k potentiometer to control screen brightness
button InterruptIn for joystick button
buzzer PwmOut to control buzzer
gameTicker Ticker object to regularly call game functions
lcd Creates N5110 object for Nokia LCD screen
pollJoystick Ticker object to read the joystick position at regular intervals
serial USB serial connection for debugging
xPot AnalogIn to control the joystick's x-position
yPot AnalogIn to control the joysticks's y-position