21 char buffer[100] = {0};
29 void b0PopCallback(
void *ptr)
34 dbSerialPrintln(
"b0PopCallback");
35 dbSerialPrint(
"ptr=");
36 dbSerialPrintln((uint32_t)ptr);
37 memset(buffer, 0,
sizeof(buffer));
38 btn->
getText(buffer,
sizeof(buffer));
40 number = atoi(buffer);
43 memset(buffer, 0,
sizeof(buffer));
44 itoa(number, buffer, 10);
53 dbSerialPrintln(
"setup done");
void nexLoop(NexTouch *nex_listen_list[])
Listen touch event and calling callbacks attached before.
void attachPop(NexTouchEventCb pop, void *ptr=NULL)
Attach an callback function of pop touch event.
bool nexInit(void)
Init Nextion.
The header file including all other header files provided by this library.
Father class of the components with touch events.