Final Version of: THE ORGINAL ISHTENDO GAMING SYSTEM including modes such as: Snake Etch-a-Sketch Temperature Sensor Also contains a hidden mini game.. Will you be the one to unlock it .... Ihsian Mulla (el14imfm@leeds.ac.uk) 200839613 May 2016
Dependencies: FXOS8700Q Buzzer ishtendo_vI N5110 SDFileSystem TMP102 mbed
main.h@0:0fbe9794df10, 2016-05-04 (annotated)
- Committer:
- Ihsianmulla
- Date:
- Wed May 04 13:06:09 2016 +0000
- Revision:
- 0:0fbe9794df10
Final Version
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Ihsianmulla | 0:0fbe9794df10 | 1 | /** Menu Functions |
Ihsianmulla | 0:0fbe9794df10 | 2 | @file main.h |
Ihsianmulla | 0:0fbe9794df10 | 3 | @brief Contains global variables, function prototypes and menu code |
Ihsianmulla | 0:0fbe9794df10 | 4 | */ |
Ihsianmulla | 0:0fbe9794df10 | 5 | #ifndef _MAIN_H_ |
Ihsianmulla | 0:0fbe9794df10 | 6 | |
Ihsianmulla | 0:0fbe9794df10 | 7 | #define _MAIN_H_ |
Ihsianmulla | 0:0fbe9794df10 | 8 | |
Ihsianmulla | 0:0fbe9794df10 | 9 | #include "N5110.h" |
Ihsianmulla | 0:0fbe9794df10 | 10 | #include "joystick.h" |
Ihsianmulla | 0:0fbe9794df10 | 11 | #include "mbed.h" |
Ihsianmulla | 0:0fbe9794df10 | 12 | #include "TMP102.h" |
Ihsianmulla | 0:0fbe9794df10 | 13 | #include "beep.h" |
Ihsianmulla | 0:0fbe9794df10 | 14 | #include <stdio.h> |
Ihsianmulla | 0:0fbe9794df10 | 15 | #include <stdlib.h> |
Ihsianmulla | 0:0fbe9794df10 | 16 | |
Ihsianmulla | 0:0fbe9794df10 | 17 | /** |
Ihsianmulla | 0:0fbe9794df10 | 18 | @brief what it does |
Ihsianmulla | 0:0fbe9794df10 | 19 | @author Ihsian Mulla |
Ihsianmulla | 0:0fbe9794df10 | 20 | @date April 2016 |
Ihsianmulla | 0:0fbe9794df10 | 21 | */ |
Ihsianmulla | 0:0fbe9794df10 | 22 | |
Ihsianmulla | 0:0fbe9794df10 | 23 | |
Ihsianmulla | 0:0fbe9794df10 | 24 | class MainFunctions |
Ihsianmulla | 0:0fbe9794df10 | 25 | { |
Ihsianmulla | 0:0fbe9794df10 | 26 | public: |
Ihsianmulla | 0:0fbe9794df10 | 27 | /** Contains the code for the introduction to the game |
Ihsianmulla | 0:0fbe9794df10 | 28 | */ |
Ihsianmulla | 0:0fbe9794df10 | 29 | void Intro(); |
Ihsianmulla | 0:0fbe9794df10 | 30 | /** Allows return to menu from game [prevents having to use NVIC_SystemReset |
Ihsianmulla | 0:0fbe9794df10 | 31 | */ |
Ihsianmulla | 0:0fbe9794df10 | 32 | void SwitchMenu(); |
Ihsianmulla | 0:0fbe9794df10 | 33 | /** writes the options as strings to the Nokia LCD screen |
Ihsianmulla | 0:0fbe9794df10 | 34 | */ |
Ihsianmulla | 0:0fbe9794df10 | 35 | void MenuOptions(); |
Ihsianmulla | 0:0fbe9794df10 | 36 | /** functions to allow user interface to play snake |
Ihsianmulla | 0:0fbe9794df10 | 37 | */ |
Ihsianmulla | 0:0fbe9794df10 | 38 | void Snake(); |
Ihsianmulla | 0:0fbe9794df10 | 39 | /** functions to allow user interface to use etch-a-sketch (contains hidden mini game) |
Ihsianmulla | 0:0fbe9794df10 | 40 | */ |
Ihsianmulla | 0:0fbe9794df10 | 41 | void Draw(); |
Ihsianmulla | 0:0fbe9794df10 | 42 | /** Contains functions for the temperature snsor with variable unit conversion |
Ihsianmulla | 0:0fbe9794df10 | 43 | */ |
Ihsianmulla | 0:0fbe9794df10 | 44 | void Temp(); |
Ihsianmulla | 0:0fbe9794df10 | 45 | /**Clear 4 pixels for food |
Ihsianmulla | 0:0fbe9794df10 | 46 | */ |
Ihsianmulla | 0:0fbe9794df10 | 47 | void button_isr(); |
Ihsianmulla | 0:0fbe9794df10 | 48 | /**Allows the serial print of the Highscore array for testing |
Ihsianmulla | 0:0fbe9794df10 | 49 | */ |
Ihsianmulla | 0:0fbe9794df10 | 50 | void error(); |
Ihsianmulla | 0:0fbe9794df10 | 51 | |
Ihsianmulla | 0:0fbe9794df10 | 52 | |
Ihsianmulla | 0:0fbe9794df10 | 53 | }; |
Ihsianmulla | 0:0fbe9794df10 | 54 | |
Ihsianmulla | 0:0fbe9794df10 | 55 | #endif |