// Page NexPage Pstart = NexPage(0, 0, "start"); NexPage Pinfo = NexPage(1, 0, "info"); NexPage Ptemp = NexPage(2, 0, "temp"); NexPage Pmenu = NexPage(3, 0, "menu"); NexPage Psdcard = NexPage(4, 0, "sdcard"); NexPage Psetup = NexPage(5, 0, "setup"); NexPage Pmove = NexPage(6, 0, "move"); NexPage Pspeed = NexPage(7, 0, "speed"); NexPage Pgcode = NexPage(8, 0, "gcode"); // Page 0 Start NexTimer startimer = NexTimer(0, 1, "tm0"); // Page 1 Info NexText Hotend0 = NexText(1, 2, "t0"); NexText Hotend1 = NexText(1, 4, "t1"); NexText Hotend21 = NexText(1, 5, "h2"); NexText Hotend2 = NexText(1, 6, "t2"); NexText LedStatus = NexText(1, 7, "status"); NexText LedCoord1 = NexText(1, 8, "icoord"); NexPicture MSD1 = NexPicture(1, 10, "p1"); NexPicture Hend0 = NexPicture(1, 12, "p3"); NexHotspot hot0 = NexHotspot(1, 13, "hot0"); NexPicture Hend1 = NexPicture(1, 14, "p4"); NexHotspot hot1 = NexHotspot(1, 15, "hot1"); NexPicture Hend2 = NexPicture(1, 16, "p5"); NexHotspot hot2 = NexHotspot(1, 17, "hot2"); NexPicture Fanpic = NexPicture(1, 18, "p6"); NexVar Hotend = NexVar(1, 19, "he"); NexVar Bed = NexVar(1, 20, "bed");
int weather_state = WEATHER_READY; int badWeatherCall; // Weather data container WeatherData weatherData[4]; /* BUTTON - WILL BE REMOVED LATER ON */ const int buttonPin1 = 4; ClickButton button1(buttonPin1, LOW, CLICKBTN_PULLUP); // Button results int function = 0; /* Declare a text objects [page id:0,component id:1, component name: "t0"]. */ /* Home screen */ NexPage home = NexPage(0, 0, "home"); NexText t0 = NexText(0, 4, "t0"); NexText t1 = NexText(0, 5, "t1"); NexText t2 = NexText(0, 6, "t2"); NexText t3 = NexText(0, 7, "t3"); NexText t4 = NexText(0, 8, "t4"); NexText t5 = NexText(0, 9, "t5"); NexText t6 = NexText(0, 10, "t6"); NexText t7 = NexText(0, 11, "t7"); NexText t8 = NexText(0, 12, "t8"); NexText t10 = NexText(0, 14, "t10"); NexText t12 = NexText(0, 16, "t12"); NexText t13 = NexText(0, 17, "t13"); NexText t14 = NexText(0, 18, "t14"); NexText t15 = NexText(0, 19, "t15"); NexText t16 = NexText(0, 20, "t16"); NexText t17 = NexText(0, 21, "t17");
#endif // Page NexPage Pstart = NexPage(0, 0, "start"); NexPage Pinfo = NexPage(1, 0, "info"); NexPage Ptemp = NexPage(2, 0, "temp"); NexPage Pmenu = NexPage(3, 0, "menu"); NexPage Psdcard = NexPage(4, 0, "sdcard"); NexPage Psetup = NexPage(5, 0, "setup"); NexPage Pmove = NexPage(6, 0, "move"); // Page 0 Start NexTimer startimer = NexTimer(0, 1, "tm0"); // Page 1 Info NexText Hotend0 = NexText(1, 2, "t0"); NexText Hotend1 = NexText(1, 4, "t1"); NexText Hotend21 = NexText(1, 5, "h2"); NexText Hotend2 = NexText(1, 6, "t2"); NexText LedStatus = NexText(1, 7, "t4"); NexText LedCoord = NexText(1, 8, "t5"); NexPicture Menu = NexPicture(1, 9, "p0"); NexPicture MSD = NexPicture(1, 10, "p1"); NexPicture MSetup = NexPicture(1, 11, "p2"); NexPicture Hend0 = NexPicture(1, 12, "p3"); NexHotspot hot0 = NexHotspot(1, 13, "hot0"); NexPicture Hend1 = NexPicture(1, 14, "p4"); NexHotspot hot1 = NexHotspot(1, 15, "hot1"); NexPicture Hend2 = NexPicture(1, 16, "p5"); NexHotspot hot2 = NexHotspot(1, 17, "hot2"); NexPicture Fanpic = NexPicture(1, 18, "p6");