//<App !Start!>
// FILE: [main.cpp]
// Created by GUIslice Builder version: [0.17.b27]
//
// GUIslice Builder Generated File
//
// For the latest guides, updates and support view:
// https://github.com/ImpulseAdventure/GUIslice
//
//<App !End!>
// ------------------------------------------------
// Headers to include
// ------------------------------------------------
#include "UI_GSLC.h"
// ------------------------------------------------
// Program Globals
// ------------------------------------------------
// Save some element references for direct access
//<Save_References !Start!>
gslc_tsElemRef* m_pElemInTxt2 = NULL;
gslc_tsElemRef* m_pElemInTxt3 = NULL;
gslc_tsElemRef* m_pElemInTxt4 = NULL;
gslc_tsElemRef* m_pElemListbox1 = NULL;
gslc_tsElemRef* m_pElemListbox1_2 = NULL;
gslc_tsElemRef* m_pElemRadial2 = NULL;
gslc_tsElemRef* m_pElemRamp1 = NULL;
gslc_tsElemRef* m_pElemVal1 = NULL;
gslc_tsElemRef* m_pElemVal2 = NULL;
gslc_tsElemRef* m_pElemKeyPadNum = NULL;
gslc_tsElemRef* m_pElemKeyPadAlpha= NULL;
//<Save_References !End!>
// Define debug message function
static int16_t DebugOut(char ch) { if (ch == (char)'\n') Serial.println(""); else Serial.write(ch); return 0; }
void setup()
{
// ------------------------------------------------
// Initialize
// ------------------------------------------------
Serial.begin(9600);
// Wait for USB Serial
//delay(1000); // NOTE: Some devices require a delay after Serial.begin() before serial port can be used
gslc_InitDebug(&DebugOut);
// ------------------------------------------------
// Create graphic elements
// ------------------------------------------------
InitGUIslice_gen();
}
// -----------------------------------
// Main event loop
// -----------------------------------
void loop()
{
// ------------------------------------------------
// Update GUI Elements
// ------------------------------------------------
//TODO - Add update code for any text, gauges, or sliders
// ------------------------------------------------
// Periodically call GUIslice update function
// ------------------------------------------------
gslc_Update(&m_gui);
}