|
@@ -8,6 +8,11 @@ MenuFunctions::MenuFunctions()
|
|
|
// Function to check menu input
|
|
// Function to check menu input
|
|
|
void MenuFunctions::main()
|
|
void MenuFunctions::main()
|
|
|
{
|
|
{
|
|
|
|
|
+ if (wifi_scan_obj.currentScanMode == WIFI_SCAN_OFF)
|
|
|
|
|
+ display_obj.updateBanner(current_menu->name);
|
|
|
|
|
+
|
|
|
|
|
+ //this->displayCurrentMenu();
|
|
|
|
|
+
|
|
|
boolean pressed = false;
|
|
boolean pressed = false;
|
|
|
// This is code from bodmer's keypad example
|
|
// This is code from bodmer's keypad example
|
|
|
uint16_t t_x = 0, t_y = 0; // To store the touch coordinates
|
|
uint16_t t_x = 0, t_y = 0; // To store the touch coordinates
|
|
@@ -256,7 +261,7 @@ void MenuFunctions::displayCurrentMenu()
|
|
|
Serial.println("Displaying current menu...");
|
|
Serial.println("Displaying current menu...");
|
|
|
display_obj.clearScreen();
|
|
display_obj.clearScreen();
|
|
|
display_obj.tft.setTextColor(TFT_LIGHTGREY, TFT_DARKGREY);
|
|
display_obj.tft.setTextColor(TFT_LIGHTGREY, TFT_DARKGREY);
|
|
|
- display_obj.tft.fillRect(0,0,240,16, TFT_DARKGREY);
|
|
|
|
|
|
|
+ //display_obj.tft.fillRect(0,0,240,16, TFT_DARKGREY);
|
|
|
//display_obj.tft.drawCentreString(" ESP32 Marauder ",120,0,2);
|
|
//display_obj.tft.drawCentreString(" ESP32 Marauder ",120,0,2);
|
|
|
//Serial.println("Getting size...");
|
|
//Serial.println("Getting size...");
|
|
|
//char buf[¤t_menu->parentMenu->name.length() + 1] = {};
|
|
//char buf[¤t_menu->parentMenu->name.length() + 1] = {};
|
|
@@ -264,7 +269,7 @@ void MenuFunctions::displayCurrentMenu()
|
|
|
//current_menu->parentMenu->name.toCharArray(buf, current_menu->parentMenu->name.length() + 1);
|
|
//current_menu->parentMenu->name.toCharArray(buf, current_menu->parentMenu->name.length() + 1);
|
|
|
//String current_name = ¤t_menu->parentMenu->name;
|
|
//String current_name = ¤t_menu->parentMenu->name;
|
|
|
//Serial.println("gottem");
|
|
//Serial.println("gottem");
|
|
|
- display_obj.tft.drawCentreString(current_menu->name,120,0,2);
|
|
|
|
|
|
|
+ //display_obj.tft.drawCentreString(current_menu->name,120,0,2);
|
|
|
if (current_menu->list != NULL)
|
|
if (current_menu->list != NULL)
|
|
|
{
|
|
{
|
|
|
display_obj.tft.setFreeFont(MENU_FONT);
|
|
display_obj.tft.setFreeFont(MENU_FONT);
|