text: /*
      The code in this file uses open source libraries provided by thecoderscorner
  
      DO NOT EDIT THIS FILE, IT WILL BE GENERATED EVERY TIME YOU USE THE UI DESIGNER
      INSTEAD EITHER PUT CODE IN YOUR SKETCH OR CREATE ANOTHER SOURCE FILE.
  
      All the variables you may need access to are marked extern in this file for easy
      use elsewhere.
   */
  
  #ifndef MENU_GENERATED_CODE_H
  #define MENU_GENERATED_CODE_H
  
  #include <tcMenu.h>
  #include <Adafruit_GFX.h>
  #include <Adafruit_ILI9341.h>
  #include "EthernetTransport.h"
  #include <RemoteConnector.h>
  #include "tcMenuAdaFruitGfx.h"
  
  // all define statements needed
  #define ENCODER_PIN_A 7
  #define ENCODER_PIN_B 6
  #define ENCODER_PIN_OK 5
  
  // all variables that need exporting
  extern AdaColorGfxMenuConfig colorConfig;
  extern Adafruit_ILI9341 gfx;
  extern AdaFruitGfxMenuRenderer renderer;
  extern IoAbstractionRef io8574;
  
  // all menu item forward references.
  extern IpAddressMenuItem menuIpAddress;
  extern BackMenuItem menuBackConnectivity;
  extern SubMenuItem menuConnectivity;
  extern FloatMenuItem menuVoltA1;
  extern FloatMenuItem menuVoltA0;
  extern BackMenuItem menuBackStatus;
  extern SubMenuItem menuStatus;
  extern BooleanMenuItem menuTempCheck;
  extern BooleanMenuItem menuSCircuitProtect;
  extern BackMenuItem menuBackAdvanced;
  extern SubMenuItem menuAdvanced;
  extern ActionMenuItem menuSaveAll;
  extern BooleanMenuItem menuPwrDelay;
  extern BackMenuItem menuBackSettings;
  extern SubMenuItem menuSettings;
  extern EnumMenuItem menuLimit;
  extern AnalogMenuItem menuCurrent;
  extern AnalogMenuItem menuVoltage;
  extern const ConnectorLocalInfo applicationInfo;
  
  // Callback functions must always include CALLBACK_FUNCTION after the return type
  #define CALLBACK_FUNCTION
  
  void CALLBACK_FUNCTION onCurrentChange(int id);
  void CALLBACK_FUNCTION onLimitMode(int id);
  void CALLBACK_FUNCTION onSaveRom(int id);
  void CALLBACK_FUNCTION onVoltageChange(int id);
  
  void setupMenu();
  
  #endif // MENU_GENERATED_CODE_H
  