![IDTECH Vivopay Neo 2 Скачать руководство пользователя страница 445](http://html.mh-extra.com/html/idtech/vivopay-neo-2/vivopay-neo-2_developers-manual_618786445.webp)
NEO 2 Interface Developer’s Guide
445
19.3.3.
Add Object to Screen (61-07)
This command adds an object to the screen. However, the screen does not display new objects until
calling
Show Screen (61-05)
to update the screen.
Note:
Before sending this command, first create the screen with the
Create Screen (61-0A)
command.
Command Frame
Byte 0-9
Byte 10
Byte 11
Byte 12
Byte 13
Byte 14 …
Byte 13+n
Byte
14+n
Byte 15+n
Header Tag &
Protocol Version
Command
Sub-Command
Data
Length
(MSB)
Data
Length
(LSB)
Data
CRC (LSB) CRC (MSB)
ViVOtech2\0
61h
07h
See below
Data Field
Data Item
Length (bytes)
Description
Screen Name
var.
Screen Name String
No longer than 32 bytes
ASCII string, terminated by 0x00
Object Name
var.
Object Name String
No longer than 32 bytes
ASCII string, terminated by 0x00
Component ID
1
Refer to LCD UI Table-2 byte0
Alignment
1
0: Display object at the horizon center of specified y, while x ignored
1: Display object at specified x and y
2: Display object at center of screen, x, y are both ignored
3: Display object at left of the screen of specified y, while x ignored
4: Display object at right of the screen of specified y, while x ignored
x-coordinate
2
x-coordinate for text area/button
Little endian, range of x-coordinate is [0, 271]
y-coordinate
2
y-coordinate for text area/button
Little endian, range of x-coordinate is [0, 479]
features
var.
This field only valid for item text area and leds widgt, for details, see table
below
This field can be omitted for item button
String
var.
Label to show on text area or button (ASCII String, Terminated by 0x00, the
Maximum string lens are:
•
Text area is 64bytes,
•
Large button is 25bytes
•
Medium button is 10bytes)
•
Filename of image/video (ASCII string, terminated by 0x00, the
maximum string lens is 32bytes)