ELEC2645 (2019/20) / Mbed 2 deprecated el18loc_final

Dependencies:   mbed

Revision:
29:207111ffd6e6
Parent:
22:028f1627c262
Child:
30:08cc4ec58d07
--- a/Menu/Menu.h	Mon May 25 10:46:02 2020 +0000
+++ b/Menu/Menu.h	Mon May 25 20:00:31 2020 +0000
@@ -15,7 +15,6 @@
 class Menu
 {
 public://-----------------------------------------------------------------------
-    //variables
     //methods
     /**constructor */
     Menu();
@@ -72,10 +71,11 @@
     void contrastrun(N5110 &lcd, Gamepad &pad);
 
 private: //---------------------------------------------------------------------
+    //Global Variables
+    int g_selecty; //variable to manage select box y coordinate
 
     //variables
     int menuflag; //flag to keep in menu loop
-    int g_selecty; //variable to manage select box y coordinate
     int submenu; //submenu selected var
     int menusize; //size of each menu
     float contrast; //contrast float
@@ -83,6 +83,7 @@
     int s; //current direction as int
     int s_1; //previous direction as int
 
+
     //Methods
     /** Prints Main Menu to LCD */
     void printmainmenu(N5110 &lcd);