|
API
For Arduino developers
|
NexHotspot,subclass of NexTouch,provides simple methods to control hotspot component. More...
#include <NexHotspot.h>
Public Member Functions | |
| NexHotspot (NexPid pid, NexCid cid, char *name, NexTouchEventCb pop=NULL, void *pop_ptr=NULL, NexTouchEventCb push=NULL, void *push_ptr=NULL) | |
| Constructor,inherited NexTouch's constructor function. | |
| void | attachPush (NexTouchEventCb push, void *ptr=NULL) |
| Register hotspot push callback function. More... | |
| void | detachPush (void) |
| Unload hotsopt push callback function. | |
| void | attachPop (NexTouchEventCb pop, void *ptr=NULL) |
| Register hotspot pop callback function. More... | |
| void | detachPop (void) |
| Unload hotsopt pop callback function. | |
Public Member Functions inherited from NexTouch | |
| NexTouch (NexPid pid, NexCid cid, char *name, NexTouchEventCb pop=NULL, void *pop_ptr=NULL, NexTouchEventCb push=NULL, void *push_ptr=NULL) | |
| Constructor of Nextouch. More... | |
| NexPid | getPid (void) |
| Get page id. More... | |
| NexCid | getCid (void) |
| Get component id. More... | |
| const char * | getObjName (void) |
| Get component name. More... | |
| void | print (void) |
| Print current object address,page id,component id, component name,pop event function address,push event function address. | |
Additional Inherited Members | |
Static Public Member Functions inherited from NexTouch | |
| static uint8_t | mainEventLoop (NexTouch **list) |
| Watting for Nextion's touch event. More... | |
| static void | sendCommand (const char *cmd) |
| Send command to Nextion. More... | |
| static bool | recvRetCommandFinished (uint32_t timeout=100) |
| Command is executed successfully. More... | |
| static uint16_t | recvRetString (char *buffer, uint16_t len, uint32_t timeout=500) |
| Receive string data. More... | |
| static bool | recvRetNumber (uint32_t *number, uint32_t timeout=500) |
| Receive uint32_t data. More... | |
NexHotspot,subclass of NexTouch,provides simple methods to control hotspot component.
Definition at line 25 of file NexHotspot.h.
| void NexHotspot::attachPop | ( | NexTouchEventCb | pop, |
| void * | ptr = NULL |
||
| ) |
Register hotspot pop callback function.
| pop | - the pointer to hotspot pot callback function. |
| ptr | - the parameter to be transmitted to hotspot pop callback function. |
Definition at line 55 of file NexHotspot.cpp.
| void NexHotspot::attachPush | ( | NexTouchEventCb | push, |
| void * | ptr = NULL |
||
| ) |
Register hotspot push callback function.
| pop | - the pointer to hotspot push callback function. |
| ptr | - the parameter to be transmitted to hotspot push callback function. |
Definition at line 35 of file NexHotspot.cpp.
1.8.7