Nextion User Manual
For Arduino developers
NexPage.cpp
Go to the documentation of this file.
1 
16 #include "NexPage.h"
17 
18 NexPage::NexPage(uint8_t pid, uint8_t cid, const char *name)
19  :NexTouch(pid, cid, name)
20 {
21 }
22 
23 bool NexPage::show(void)
24 {
25  uint8_t buffer[4] = {0};
26 
27  const char *name = getObjName();
28  if (!name)
29  {
30  return false;
31  }
32 
33  String cmd = String("page ");
34  cmd += name;
35  sendCommand(cmd.c_str());
36  return recvRetCommandFinished();
37 }
38 
bool show(void)
Show itself.
Definition: NexPage.cpp:23
The definition of class NexPage.
NexPage(uint8_t pid, uint8_t cid, const char *name)
Constructor.
Definition: NexPage.cpp:18
Father class of the components with touch events.
Definition: NexTouch.h:53