buydisplay.com
EastRising
Figure 4-3: 80h Command Picture Example
Note:
the host send command through UART need to add
Start(1Byte)
on front end, and
CRC(2Bytes) /End(4Bytes)
on back end. Please refer to Table 2-2. in order to avoid lengthy
instructions, the following examples will omit Start (1Byte), CRC (2Bytes) and End (4Bytes)
In addition to the 80h and 8Ah instructions, the host can also directly use 8Fh command
sending picture number to display picture on panel directly. This command does not need to
be set in the "UartTFT_Tool" tool or in the "UartTFT.ini" file.
Table 4-1B: Fixed Picture Setting Command
Command
Function
Code
No.
Command
Parameter
Command Description
Display
Picture on
Panel Directly
8Fh
nn
X(2), Y(2), PNG(1), Pnn(2)
Display picture P at (X, Y) position.
PNG=1 means the background is
transparent (PNG file), PNG=0 is not,
nn is the sequence number.
For example, the host transmits display commands through the UART serial port: “Start(1Byte)
+
8Fh
+
00
+
0064h
(2Bytes) +
0032h
(2Bytes) +
00h
(1Bytes) +
0001h
(2Bytes) + (CRC(2Bytes) +
End(4Bytes)”to TFT panel, then the first picture within bmp format will be displayed on the
Coordinate (100, 50) of panel.
If transmits “Start(1Byte) +
8Fh
+ 00 +
0064h
(2Bytes) +
00F0h
(2Bytes) +
01h
(1Bytes) +
0002h
(2Bytes) + (CRC(2Bytes) + End(4Bytes)” to TFT panel, then the 2nd picture within “png”
format will be displayed on the Coordinate (100, 240) of panel.
The host transmits commands through the UART serial port must add “
Start”, “ CRC” and “End”
to TFT panel. Please refer to Table 2-2: command protocol for detail. To avoid lengthy
explanations, subsequent examples will omit Start , CRC and End.