buydisplay.com
EastRising
4.2.6 Point Drawing Command
The ER-TFT028A2-4-5465 contains a powerful geometric drawing hardware accelerator, so it is
very efficient to perform geometric drawing. User only need to input simple graphic
parameters to draw geometric figures. The following is the serial command for drawing
geometry:
Table 4-8: Geometric Drawing Command - Point
Command
Function
Code
No.
Command
Parameter
Command Description
Point
Drawing
Setting
DFh
#nn:
Type(1), R(1), Color(3)
Draw a circle point with a color
(Type=0) or a square point (Type=1).
When drawing a circle, R represents
the radius, and a square point R
represents the width.
Input below command in
“UartTFT.ini”
:
DFh #00: 0, 3, 0xFF0000
// display a red point with radius at 3
DFh #01: 1, 5, 0x0000FF
// display a blue square point with width at 5
After the compilation is completed, the host transmits the display commands
DFh, 00, 0010,
and 0010
to the Serial Uart TFT Panel through the UART serial port, then the TFT displays a red
circle point with a radius of 3 at position (10, 10). The host transmits the display commands
DFh, 01, 0020, and 0020
to the Serial Uart TFT Panel through the UART serial port, then the TFT
displays a blue square point with a length and width of 5 at position (20, 20).
Figure 4-11: Point Drawing Example