Documentation: NexVariable.h Source File

| Documentation For Arduino users

- Main Page
- Related Pages
- Modules
- Classes
- Files
- Examples

- File List
- File Members

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__*/
NexVariable
NexButton component.
Definition: NexVariable.h:35
NexVariable::setValue
bool setValue(uint32_t number)
Set val attribute of component.
Definition: NexVariable.cpp:31
NexTouch.h
The definition of class NexTouch.
NexVariable::setText
bool setText(const char *buffer)
Set text attribute of component.
Definition: NexVariable.cpp:55
NexHardware.h
The definition of base API for using Nextion.
NexVariable::getText
uint32_t getText(char *buffer, uint32_t len)
Get text attribute of component.
Definition: NexVariable.cpp:45
NexVariable::getValue
uint32_t getValue(uint32_t *number)
Get val attribute of component.
Definition: NexVariable.cpp:22
NexVariable::NexVariable
NexVariable(uint8_t pid, uint8_t cid, const char *name)
Constructor.
Definition: NexVariable.cpp:17
NexTouch
Father class of the components with touch events.
Definition: NexTouch.h:53