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
main.h
- Committer:
- meurigp
- Date:
- 2016-05-01
- Revision:
- 10:7820b46476ea
- Child:
- 11:f8478bc749e0
File content as of revision 10:7820b46476ea:
/** @file main.h @brief Header file containing functions prototypes, defines and global variables. @brief Revision 1.0. @author Meurig Phillips @date April 2016 */ #ifndef MAIN_H #define MAIN_H #include "mbed.h" /** @namespace button @brief GPIO input for joystick button @namespace xPot @brief GPIO input for joystick x potentiometer value @namespace yPot @brief GPIO input for joystick y potentiometer value @namespace greenLed @brief GPIO output for green LED @namespace redLed @brief GPIO output for red LED */ DigitalIn button(PTB18); AnalogIn xPot(PTB2); AnalogIn yPot(PTB3); DigitalOut greenLed(PTC2); DigitalOut redLed(PTA2);