SSD1789A Solomon Systech, SSD1789A Datasheet - Page 51

no-image

SSD1789A

Manufacturer Part Number
SSD1789A
Description
CSTN LCD Driver
Manufacturer
Solomon Systech
Datasheet
www.DataSheet4U.com
9.29 Draw Line (83 Hex)
Given the starting point (X1, Y1) and the ending point (X2, Y2), a line will be drawn with the color specified.
The following example illustrates the line drawing procedure.
Result: A green line will be drawn between coordinates (0,0) and (1,1)
Remark: X1, X2
9.30 Fill Enable/Disable (92 Hex)
This command allows the fill color option to be enabled or disabled. This command is applicable to the Draw Rectangle
feature. When the selection bit is “0”, the fill color option is disabled. When the selection bit is “1”, the fill color option is
enabled.
9.31 Draw rectangle (84 Hex)
Given the starting point (X1, Y1) and the ending point (X2, Y2), specify the width and height of a rectangle that will be
drawn with the color specified. Remarks: If fill color option is disabled, the enclosed area will not be filled.
The following example illustrates the rectangle drawing procedure.
Result: A rectangle will be drawn at (0,0) to (2,2), filled green with red border
Remark: X1, X2
SSD1789A Series Rev 1.0
1.
2.
3.
4.
5.
6.
1.
2.
3.
4.
5.
6.
7.
Y1, Y2
Y1, Y2
Enter the “draw line mode” by execute the command 83H
Set the starting X-coordinates, X1. E.g., 00H.
Set the starting Y-coordinates, Y1. E.g., 00H.
Set the finishing X-coordinates, X2. E.g., 01H
Set the finishing Y-coordinates, Y2. E.g., 01H
Set the color to RGB = (0,1,0) e.g., 07H followed by E0H
Enter the “draw rectangle mode” by execute the command 8AH
Set the starting X-coordinates, X1. E.g., 00H.
Set the starting Y-coordinates, Y1. E.g., 00H.
Set the finishing X-coordinates, X2. E.g., 02H
Set the finishing Y-coordinates, Y2. E.g., 02H
Set the color to RGB = (1,0,0) e.g., F8H following by 00H
Set the filled color to RGB = (0,1,0) e.g., 07H following by E0H
131; Y1 < Y2
131; Y1 < Y2
131; X1 < X2
131; X1 < X2
www.DataSheet4U.com
P 51/69 Jul 2004
Solomon Systech
www.DataSheet
www.DataSheet4U
www.DataSheet
www.DataSheet
4U
4U.com
4U
.com
.com
.com

Related parts for SSD1789A