23 :
NexTouch(pid, cid, name, pop, pop_ptr)
37 String cmd = String(
"get ");
57 utoa(number, buf, 10);
74 NexTouch::attachPop(pop, ptr);
83 NexTouch::detachPop();
void detachPop(void)
Unload picture pop callback function.
bool setPic(uint32_t number)
Set picture's number.
NexPicture(NexPid pid, NexCid cid, char *name, NexTouchEventCb pop=NULL, void *pop_ptr=NULL)
Constructor,inherited NexTouch's constructor function.
static void sendCommand(const char *cmd)
Send command to Nextion.
const char * getObjName(void)
Get component name.
void attachPop(NexTouchEventCb pop, void *ptr=NULL)
Register picture pop callback function.
static bool recvRetNumber(uint32_t *number, uint32_t timeout=500)
Receive uint32_t data.
static bool recvRetCommandFinished(uint32_t timeout=100)
Command is executed successfully.
bool getPic(uint32_t *number)
Get picture's number.
Root Class of Nextion Components.