Documentation
For Arduino users
NexVariable.h
1 
17 #ifndef __NEXVARRIABLE_H__
18 #define __NEXVARRIABLE_H__
19 
20 #include "NexTouch.h"
21 #include "NexHardware.h"
35 class NexVariable: public NexTouch
36 {
37 public: /* methods */
38 
42  NexVariable(uint8_t pid, uint8_t cid, const char *name);
43 
51  uint32_t getText(char *buffer, uint32_t len);
52 
59  bool setText(const char *buffer);
60 
67  uint32_t getValue(uint32_t *number);
68 
75  bool setValue(uint32_t number);
76 };
82 #endif /* #ifndef __NEXVARRIABLE_H__*/
NexButton component.
Definition: NexVariable.h:35
bool setValue(uint32_t number)
Set val attribute of component.
Definition: NexVariable.cpp:31
The definition of class NexTouch.
bool setText(const char *buffer)
Set text attribute of component.
Definition: NexVariable.cpp:55
The definition of base API for using Nextion.
uint32_t getText(char *buffer, uint32_t len)
Get text attribute of component.
Definition: NexVariable.cpp:45
uint32_t getValue(uint32_t *number)
Get val attribute of component.
Definition: NexVariable.cpp:22
NexVariable(uint8_t pid, uint8_t cid, const char *name)
Constructor.
Definition: NexVariable.cpp:17
Father class of the components with touch events.
Definition: NexTouch.h:53