Авг 272017
Nextion Instruction Set
Содержание
- 2 Classification I: Operation Commands of Component and System
- 2.1 page: Refresh page
- 2.2 ref: Refresh component
- 2.3 click: Activate component’s press/release event
- 2.4 ref_stop: Stop refreshing screen
- 2.5 ref_star: Recover refreshing screen
- 2.6 get: Get variable/constant value with format
- 2.7 sendme: send current pageID to UART
- 2.8 cov: variable type conversion
- 2.9 touch_j: Touch calibration
- 2.10 substr: Extracts the characters from a string
- 2.11 vis: Hide/show component
- 2.12 tsw: Enable/disable component touch function
- 2.13 com_stop: Stop execute instructions from UART
- 2.14 com_star: Execute instructions from UART
- 2.15 randset: Set random value range
- 2.16 code_c: Clear the buffer
- 2.17 print: Get variable variable/constant value without format
- 2.18 printh: Send hexadecimal string
- 2.19 add: Add data to waveform component
- 2.20 addt: Add data to waveform component in volume
- 2.21 cle: Clear data in waveform component
- 2.22 rest: Reset Nextion device
- 2.23 doevents: Force refresh the screen immediately
- 2.24 strlen: check length of a string
- 2.25 if: if statement
- 2.26 while: while statemet
- 2.27 for: for statemet
- 2.28 repo: read EEPROM — Enhanced Model Only
- 2.29 wepo: write EEPROM — Enhanced Model Only
- 2.30 wept: write data in hex to EEPROM through UART — Enhanced Model Only
- 2.31 rept: read data in hex from EEPROM to UART — Enhanced Model Only
- 2.32 cfgpio: configure GPIO — Enhanced Model Only
- 3 Classification II: GUI Designing Command
- 4 Nextion HMI: System Variables List
- 5 Nextion HMI: Color Code List
- 6 Format of Device Return Data
- 7 Useful link
Note:
1. The instruction is end with three bytes «0xff 0xff 0xff»
2. All the instrucitons and parametners are in ASCII
3. All the instrucitons are in lowercase letters
Classification I: Operation Commands of Component and System
page: Refresh page
page pageid
pageid: Page ID or Page Name
- Example 1:
page 0 //Refresh page 0
- Example 2:
page main //Refresh the page main
Remarks:
The device automatically refresh page 0 when power on.
Sorry, the comment form is closed at this time.