API
For Arduino developers
Public Member Functions | List of all members
NexPointer Class Reference

NexPointer,subclass of NexTouch,provides simple methods to control pointer component. More...

#include <NexPointer.h>

Inheritance diagram for NexPointer:
NexTouch

Public Member Functions

 NexPointer (NexPid pid, NexCid cid, char *name)
 Constructor,inherited NexTouch's constructor function.
 
bool getValue (uint32_t *number)
 Get the value of pointer. More...
 
bool setValue (uint32_t number)
 Set the value of pointer. More...
 
- 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...
 

Detailed Description

NexPointer,subclass of NexTouch,provides simple methods to control pointer component.

Examples:
CompPointer.ino.

Definition at line 10 of file NexPointer.h.

Member Function Documentation

bool NexPointer::getValue ( uint32_t *  number)

Get the value of pointer.

Parameters
number- an output parameter to save pointer's value.
Return values
true- success.
false- failed.
Examples:
CompPointer.ino.

Definition at line 20 of file NexPointer.cpp.

bool NexPointer::setValue ( uint32_t  number)

Set the value of pointer.

Parameters
number- the value of pointer.
Return values
true- success.
false- failed.
Examples:
CompPointer.ino.

Definition at line 37 of file NexPointer.cpp.


The documentation for this class was generated from the following files: