NeoNextion
Arduino library for the Nextion displays.
 All Classes Files Functions Variables Typedefs Enumerations Enumerator
NextionTypes.h
Go to the documentation of this file.
1 
3 #ifndef __NEONEXTION_NEXTIONTYPES
4 #define __NEONEXTION_NEXTIONTYPES
5 
11 {
12  NEX_RET_CMD_FINISHED = (0x01),
13  NEX_RET_EVENT_LAUNCHED = (0x88),
14  NEX_RET_EVENT_UPGRADED = (0x89),
15  NEX_RET_EVENT_TOUCH_HEAD = (0x65),
16  NEX_RET_EVENT_POSITION_HEAD = (0x67),
17  NEX_RET_EVENT_SLEEP_POSITION_HEAD = (0x68),
18  NEX_RET_CURRENT_PAGE_ID_HEAD = (0x66),
19  NEX_RET_STRING_HEAD = (0x70),
20  NEX_RET_NUMBER_HEAD = (0x71),
21  NEX_RET_INVALID_CMD = (0x00),
22  NEX_RET_INVALID_COMPONENT_ID = (0x02),
23  NEX_RET_INVALID_PAGE_ID = (0x03),
24  NEX_RET_INVALID_PICTURE_ID = (0x04),
25  NEX_RET_INVALID_FONT_ID = (0x05),
26  NEX_RET_INVALID_BAUD = (0x11),
27  NEX_RET_INVALID_VARIABLE = (0x1A),
28  NEX_RET_INVALID_OPERATION = (0x1B)
29 };
30 
36 {
37  NEX_FA_NONE = -1,
41 };
42 
48 {
49  NEX_BG_NONE = -1,
53 };
54 
60 {
61  NEX_COL_NONE = -1,
62  NEX_COL_BLACK = 0,
63  NEX_COL_WHITE = 65535,
64  NEX_COL_RED = 63488,
65  NEX_COL_GREEN = 2016,
66  NEX_COL_BLUE = 31,
67  NEX_COL_GRAY = 33840,
68  NEX_COL_BROWN = 48192,
69  NEX_COL_YELLOW = 65504
70 };
71 
77 {
78  NEX_EVENT_PUSH = (0x01),
79  NEX_EVENT_POP = (0x00),
80  NEX_EVENT_BOTH
81 };
82 
88 {
89  NEX_SCROLL_NONE = -1,
90  NEX_SCROLL_LEFT = 1,
91  NEX_SCROLL_RIGHT = 0,
92  NEX_SCROLL_UP = 3,
93  NEX_SCROLL_DOWN = 2
94 };
95 
96 #endif
Undefined.
Definition: NextionTypes.h:49
Centre.
Definition: NextionTypes.h:39
Left (x) or top (y)
Definition: NextionTypes.h:38
Right (x) or bottom (y)
Definition: NextionTypes.h:40
NextionEventType
Type of events received from device.
Definition: NextionTypes.h:76
NextionValue
Values used in messages.
Definition: NextionTypes.h:10
Cropped image.
Definition: NextionTypes.h:50
Solid colour.
Definition: NextionTypes.h:51
NextionBackground
Background modes for widgets/drawables with backgrounds.
Definition: NextionTypes.h:47
Full size image.
Definition: NextionTypes.h:52
Undefined.
Definition: NextionTypes.h:37
NextionScrollDirection
Directions for scolling.
Definition: NextionTypes.h:87
NextionColour
Several default colour values.
Definition: NextionTypes.h:59
NextionFontAlignment
Font alignment modes.
Definition: NextionTypes.h:35