NeoNextion
Arduino library for the Nextion displays.
 All Classes Files Functions Variables Typedefs Enumerations Enumerator
Enumerations
NextionTypes.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  NextionValue {
  NEX_RET_CMD_FINISHED = (0x01),
  NEX_RET_EVENT_LAUNCHED = (0x88),
  NEX_RET_EVENT_UPGRADED = (0x89),
  NEX_RET_EVENT_TOUCH_HEAD = (0x65),
  NEX_RET_EVENT_POSITION_HEAD = (0x67),
  NEX_RET_EVENT_SLEEP_POSITION_HEAD = (0x68),
  NEX_RET_CURRENT_PAGE_ID_HEAD = (0x66),
  NEX_RET_STRING_HEAD = (0x70),
  NEX_RET_NUMBER_HEAD = (0x71),
  NEX_RET_INVALID_CMD = (0x00),
  NEX_RET_INVALID_COMPONENT_ID = (0x02),
  NEX_RET_INVALID_PAGE_ID = (0x03),
  NEX_RET_INVALID_PICTURE_ID = (0x04),
  NEX_RET_INVALID_FONT_ID = (0x05),
  NEX_RET_INVALID_BAUD = (0x11),
  NEX_RET_INVALID_VARIABLE = (0x1A),
  NEX_RET_INVALID_OPERATION = (0x1B)
}
 Values used in messages.
 
enum  NextionFontAlignment {
  NEX_FA_NONE = -1,
  NEX_FA_LEFT_UP = 0,
  NEX_FA_CENTRE = 1,
  NEX_FA_RIGHT_DOWN = 2
}
 Font alignment modes. More...
 
enum  NextionBackground {
  NEX_BG_NONE = -1,
  NEX_BG_CROPIMAGE = 0,
  NEX_BG_SOLIDCOLOUR = 1,
  NEW_BG_IMAGE = 2
}
 Background modes for widgets/drawables with backgrounds. More...
 
enum  NextionColour {
  NEX_COL_NONE = -1,
  NEX_COL_BLACK = 0,
  NEX_COL_WHITE = 65535,
  NEX_COL_RED = 63488,
  NEX_COL_GREEN = 2016,
  NEX_COL_BLUE = 31,
  NEX_COL_GRAY = 33840,
  NEX_COL_BROWN = 48192,
  NEX_COL_YELLOW = 65504
}
 Several default colour values.
 
enum  NextionEventType {
  NEX_EVENT_PUSH = (0x01),
  NEX_EVENT_POP = (0x00),
  NEX_EVENT_BOTH
}
 Type of events received from device.
 
enum  NextionScrollDirection {
  NEX_SCROLL_NONE = -1,
  NEX_SCROLL_LEFT = 1,
  NEX_SCROLL_RIGHT = 0,
  NEX_SCROLL_UP = 3,
  NEX_SCROLL_DOWN = 2
}
 Directions for scolling.
 

Enumeration Type Documentation

Background modes for widgets/drawables with backgrounds.

Enumerator
NEX_BG_NONE 

Undefined.

NEX_BG_CROPIMAGE 

Cropped image.

NEX_BG_SOLIDCOLOUR 

Solid colour.

NEW_BG_IMAGE 

Full size image.

Font alignment modes.

Enumerator
NEX_FA_NONE 

Undefined.

NEX_FA_LEFT_UP 

Left (x) or top (y)

NEX_FA_CENTRE 

Centre.

NEX_FA_RIGHT_DOWN 

Right (x) or bottom (y)