// // FILE: [main.cpp] // Created by GUIslice Builder version: [0.17.b34] // // GUIslice Builder Generated File // // For the latest guides, updates and support view: // https://github.com/ImpulseAdventure/GUIslice // // // ------------------------------------------------ // Headers to include // ------------------------------------------------ #include "GUIsliceProjects_GSLC.h" // ------------------------------------------------ // Program Globals // ------------------------------------------------ // Save some element references for direct access // // // Define debug message function static int16_t DebugOut(char ch) { if (ch == (char)'\n') Serial.println(""); else Serial.write(ch); return 0; } // ------------------------------------------------ // Callback Methods // ------------------------------------------------ // Common Button callback bool CbBtnCommon(void *pvGui, void *pvElemRef, gslc_teTouch eTouch, int16_t nX, int16_t nY) { // Typecast the parameters to match the GUI and element types gslc_tsGui *pGui = (gslc_tsGui *)(pvGui); gslc_tsElemRef *pElemRef = (gslc_tsElemRef *)(pvElemRef); gslc_tsElem *pElem = gslc_GetElemFromRef(pGui, pElemRef); if (eTouch == GSLC_TOUCH_UP_IN) { // From the element's ID we can determine which button was pressed. switch (pElem->nId) { //