コード例 #1
0
ファイル: main.cpp プロジェクト: pannuhuone/Thermometer
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");
NexText t18 = NexText(0, 22, "t18");
NexText t19 = NexText(0, 23, "t19");
NexText t20 = NexText(0, 24, "t20");
NexText t21 = NexText(0, 25, "t21");
NexText t22 = NexText(0, 26, "t22");
NexText t23 = NexText(0, 27, "t23");
NexPicture p0 = NexPicture(0, 28, "p0");
NexPicture p1 = NexPicture(0, 29, "p1");
NexPicture p2 = NexPicture(0, 30, "p2");
NexPicture p3 = NexPicture(0, 31, "p3");
NexButton b0 = NexButton(0, 3, "b0");
NexButton b1 = NexButton(0, 2, "b1");
NexButton b2 = NexButton(0, 1, "b2");

/* Settings screen */
NexPage settings = NexPage(1, 0, "settings");
NexText tx0 = NexText(1, 4, "tx0");
NexText tx1 = NexText(1, 5, "tx1");
NexDSButton bt0 = NexDSButton(1, 6, "bt0");
NexDSButton bt1 = NexDSButton(1, 7, "bt1");
NexButton n0 = NexButton(1, 1, "n0");
NexButton n1 = NexButton(1, 3, "n1");
コード例 #2
0
ファイル: Nextion_lcd.cpp プロジェクト: bloutix/MarlinKimbra
  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");
  NexVar Fan            = NexVar(1, 21, "fn");
  NexTimer fantimer     = NexTimer(1, 22, "tm0");
  NexProgressBar sdbar  = NexProgressBar(1, 23, "j0");
  NexPicture NPlay      = NexPicture(1, 24, "p7");
  NexPicture NStop      = NexPicture(1, 25, "p8");
  NexVar SD             = NexVar(1, 26, "sd");