meurig phillips snake game - accidentally published to my account instead of to the group!

Dependencies:   Joystick N5110 SDFileSystem beep fsmMenu mbed

Fork of SnakeProjectRev1 by Meurig Phillips

Committer:
meurigp
Date:
Sun May 01 11:11:19 2016 +0000
Revision:
10:7820b46476ea
Child:
11:f8478bc749e0
snake game working with joystick functions in library

Who changed what in which revision?

UserRevisionLine numberNew contents of line
meurigp 10:7820b46476ea 1 /**
meurigp 10:7820b46476ea 2 @file main.h
meurigp 10:7820b46476ea 3 @brief Header file containing functions prototypes, defines and global variables.
meurigp 10:7820b46476ea 4 @brief Revision 1.0.
meurigp 10:7820b46476ea 5 @author Meurig Phillips
meurigp 10:7820b46476ea 6 @date April 2016
meurigp 10:7820b46476ea 7 */
meurigp 10:7820b46476ea 8
meurigp 10:7820b46476ea 9 #ifndef MAIN_H
meurigp 10:7820b46476ea 10 #define MAIN_H
meurigp 10:7820b46476ea 11
meurigp 10:7820b46476ea 12 #include "mbed.h"
meurigp 10:7820b46476ea 13
meurigp 10:7820b46476ea 14 /**
meurigp 10:7820b46476ea 15 @namespace button
meurigp 10:7820b46476ea 16 @brief GPIO input for joystick button
meurigp 10:7820b46476ea 17 @namespace xPot
meurigp 10:7820b46476ea 18 @brief GPIO input for joystick x potentiometer value
meurigp 10:7820b46476ea 19 @namespace yPot
meurigp 10:7820b46476ea 20 @brief GPIO input for joystick y potentiometer value
meurigp 10:7820b46476ea 21 @namespace greenLed
meurigp 10:7820b46476ea 22 @brief GPIO output for green LED
meurigp 10:7820b46476ea 23 @namespace redLed
meurigp 10:7820b46476ea 24 @brief GPIO output for red LED
meurigp 10:7820b46476ea 25 */
meurigp 10:7820b46476ea 26 DigitalIn button(PTB18);
meurigp 10:7820b46476ea 27 AnalogIn xPot(PTB2);
meurigp 10:7820b46476ea 28 AnalogIn yPot(PTB3);
meurigp 10:7820b46476ea 29 DigitalOut greenLed(PTC2);
meurigp 10:7820b46476ea 30 DigitalOut redLed(PTA2);