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

Committer:
Ihsianmulla
Date:
Wed May 04 13:06:09 2016 +0000
Revision:
0:0fbe9794df10
Final Version

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Ihsianmulla 0:0fbe9794df10 1 /**
Ihsianmulla 0:0fbe9794df10 2 @file SnakeFunctions.h
Ihsianmulla 0:0fbe9794df10 3 @brief header file for snake functions
Ihsianmulla 0:0fbe9794df10 4 */
Ihsianmulla 0:0fbe9794df10 5 #ifndef SNAKEFUNCTIONS_H
Ihsianmulla 0:0fbe9794df10 6
Ihsianmulla 0:0fbe9794df10 7 #include "mbed.h"
Ihsianmulla 0:0fbe9794df10 8 #include "N5110.h"
Ihsianmulla 0:0fbe9794df10 9
Ihsianmulla 0:0fbe9794df10 10 /**
Ihsianmulla 0:0fbe9794df10 11 @brief This library has been created to allow for snake movement
Ihsianmulla 0:0fbe9794df10 12 @author Ihsian Mulla
Ihsianmulla 0:0fbe9794df10 13 @date April 2016
Ihsianmulla 0:0fbe9794df10 14 */
Ihsianmulla 0:0fbe9794df10 15
Ihsianmulla 0:0fbe9794df10 16
Ihsianmulla 0:0fbe9794df10 17
Ihsianmulla 0:0fbe9794df10 18 class SnakeFunctions
Ihsianmulla 0:0fbe9794df10 19 {
Ihsianmulla 0:0fbe9794df10 20 public:
Ihsianmulla 0:0fbe9794df10 21 /** contains the rule set for snake stating global variables and functions for play
Ihsianmulla 0:0fbe9794df10 22 */
Ihsianmulla 0:0fbe9794df10 23 void Snake();
Ihsianmulla 0:0fbe9794df10 24 /**Allows for the pause of the game during snake play
Ihsianmulla 0:0fbe9794df10 25 */
Ihsianmulla 0:0fbe9794df10 26 void Pause();
Ihsianmulla 0:0fbe9794df10 27 /**Function to read array of highscores from sd card
Ihsianmulla 0:0fbe9794df10 28 */
Ihsianmulla 0:0fbe9794df10 29 void Read();
Ihsianmulla 0:0fbe9794df10 30 /**Function to check score against the array of highscores and replace
Ihsianmulla 0:0fbe9794df10 31 *and shift where necessary
Ihsianmulla 0:0fbe9794df10 32 */
Ihsianmulla 0:0fbe9794df10 33 void Check();
Ihsianmulla 0:0fbe9794df10 34 /**Function to write array to SD card
Ihsianmulla 0:0fbe9794df10 35 */
Ihsianmulla 0:0fbe9794df10 36 void Write();
Ihsianmulla 0:0fbe9794df10 37 /**Set 4 pixels for food
Ihsianmulla 0:0fbe9794df10 38 */
Ihsianmulla 0:0fbe9794df10 39 void SetFood();
Ihsianmulla 0:0fbe9794df10 40 /**Clear 4 pixels for food
Ihsianmulla 0:0fbe9794df10 41 */
Ihsianmulla 0:0fbe9794df10 42 void ClearFood();
Ihsianmulla 0:0fbe9794df10 43 /**Allows the serial print of the Highscore array for testing
Ihsianmulla 0:0fbe9794df10 44 */
Ihsianmulla 0:0fbe9794df10 45 void PrintCheck();
Ihsianmulla 0:0fbe9794df10 46 /**Sets ISR to change flag
Ihsianmulla 0:0fbe9794df10 47 */
Ihsianmulla 0:0fbe9794df10 48 void PauseSleep_isr();
Ihsianmulla 0:0fbe9794df10 49 /**Allows return to menu from game [prevents having to use NVIC_SystemReset
Ihsianmulla 0:0fbe9794df10 50 */
Ihsianmulla 0:0fbe9794df10 51 void SwitchMenu();
Ihsianmulla 0:0fbe9794df10 52
Ihsianmulla 0:0fbe9794df10 53 };
Ihsianmulla 0:0fbe9794df10 54
Ihsianmulla 0:0fbe9794df10 55 #endif
Ihsianmulla 0:0fbe9794df10 56