Documentation
For Arduino users
NexDualStateButton.h
Go to the documentation of this file.
1 
18 #ifndef __NEXDSBUTTON_H__
19 #define __NEXDSBUTTON_H__
20 
21 #include "NexTouch.h"
22 #include "NexHardware.h"
36 class NexDSButton: public NexTouch
37 {
38 public: /* methods */
42  NexDSButton(uint8_t pid, uint8_t cid, const char *name);
43 
50  bool getValue(uint32_t *number);
51 
58  bool setValue(uint32_t number);
59 
67  uint16_t getText(char *buffer, uint16_t len);
68 
75  bool setText(const char *buffer);
76 
83  uint32_t Get_state0_color_bco0(uint32_t *number);
84 
91  bool Set_state0_color_bco0(uint32_t number);
92 
99  uint32_t Get_state1_color_bco1(uint32_t *number);
100 
107  bool Set_state1_color_bco1(uint32_t number);
108 
115  uint32_t Get_font_color_pco(uint32_t *number);
116 
123  bool Set_font_color_pco(uint32_t number);
124 
131  uint32_t Get_place_xcen(uint32_t *number);
132 
139  bool Set_place_xcen(uint32_t number);
140 
147  uint32_t Get_place_ycen(uint32_t *number);
148 
155  bool Set_place_ycen(uint32_t number);
156 
163  uint32_t getFont(uint32_t *number);
164 
171  bool setFont(uint32_t number);
172 
179  uint32_t Get_state0_crop_picc0(uint32_t *number);
180 
187  bool Set_state0_crop_picc0(uint32_t number);
188 
195  uint32_t Get_state1_crop_picc1(uint32_t *number);
196 
203  bool Set_state1_crop_picc1(uint32_t number);
204 
211  uint32_t Get_state0_image_pic0(uint32_t *number);
212 
219  bool Set_state0_image_pic0(uint32_t number);
220 
227  uint32_t Get_state1_image_pic1(uint32_t *number);
228 
235  bool Set_state1_image_pic1(uint32_t number);
236 };
243 #endif /* #ifndef __NEXDSBUTTON_H__ */
bool Set_state1_color_bco1(uint32_t number)
Set bco1 attribute of component.
uint32_t Get_state1_color_bco1(uint32_t *number)
Get bco1 attribute of component.
bool Set_place_ycen(uint32_t number)
Set ycen attribute of component.
bool Set_state1_image_pic1(uint32_t number)
Set pic1 attribute of component.
uint32_t getFont(uint32_t *number)
Get font attribute of component.
uint32_t Get_state1_image_pic1(uint32_t *number)
Get pic1 attribute of component.
NexDSButton component.
bool setFont(uint32_t number)
Set font attribute of component.
bool Set_place_xcen(uint32_t number)
Set xcen attribute of component.
uint32_t Get_state0_image_pic0(uint32_t *number)
Get pic0 attribute of component.
bool Set_state0_crop_picc0(uint32_t number)
Set picc0 attribute of component.
uint32_t Get_state0_color_bco0(uint32_t *number)
Get bco0 attribute of component.
bool Set_font_color_pco(uint32_t number)
Set pco attribute of component.
uint32_t Get_font_color_pco(uint32_t *number)
Get pco attribute of component.
bool getValue(uint32_t *number)
Get number attribute of component.
uint32_t Get_place_ycen(uint32_t *number)
Get ycen attribute of component.
The definition of class NexTouch.
bool Set_state0_image_pic0(uint32_t number)
Set pic0 attribute of component.
NexDSButton(uint8_t pid, uint8_t cid, const char *name)
Constructor.
The definition of base API for using Nextion.
uint32_t Get_state0_crop_picc0(uint32_t *number)
Get picc0 attribute of component.
bool setValue(uint32_t number)
Set number attribute of component.
uint16_t getText(char *buffer, uint16_t len)
Get text attribute of component.
bool Set_state1_crop_picc1(uint32_t number)
Set picc1 attribute of component.
bool setText(const char *buffer)
Set text attribute of component.
Father class of the components with touch events.
Definition: NexTouch.h:53
uint32_t Get_state1_crop_picc1(uint32_t *number)
Get picc1 attribute of component.
uint32_t Get_place_xcen(uint32_t *number)
Get xcen attribute of component.
bool Set_state0_color_bco0(uint32_t number)
Set bco0 attribute of component.