Nextion User Manual
For Arduino developers
NexButton.h
Go to the documentation of this file.
1 
17 #ifndef __NEXBUTTON_H__
18 #define __NEXBUTTON_H__
19 
20 #include "NexTouch.h"
21 #include "NexHardware.h"
35 class NexButton: public NexTouch
36 {
37 public: /* methods */
38 
42  NexButton(uint8_t pid, uint8_t cid, const char *name);
43 
51  uint16_t getText(char *buffer, uint16_t len);
52 
59  bool setText(const char *buffer);
60 };
66 #endif /* #ifndef __NEXBUTTON_H__ */
NexButton(uint8_t pid, uint8_t cid, const char *name)
Constructor.
Definition: NexButton.cpp:18
uint16_t getText(char *buffer, uint16_t len)
Get text attribute of component.
Definition: NexButton.cpp:23
NexButton component.
Definition: NexButton.h:35
bool setText(const char *buffer)
Set text attribute of component.
Definition: NexButton.cpp:33
The definition of class NexTouch.
The definition of base API for using Nextion.
Father class of the components with touch events.
Definition: NexTouch.h:53