Our High-Level Graphics Controller can be programmend by a number of built in commands.
Each command starts with a command letter followed by a number of parameters.
Command table EA IC202
Command Remarks
Functions for outputting text
Text mode T
R
L
O
U
n1 ptn R/L/O/U: Write character string (R)ight, (L)eft, (O)ben (up), (U)nten
(down); n1: overlay combination mode for text output 1=set; 2=delete;
3=inverse; 4=replace; 5=inverse replace; ptn: use pattern no. 0..7;
Set font Fn1 n2 n3 Set font no. n1; n1=1:4x6 font; n1=2:6x8 font; n2=3:8x16 font
n2+n3=zoom factor (1..4); n2=X factor; n3=Y factor;
Set ASCII characters Ax1 y1 n1 The character n1 will be set at coordinate x1,y1. (Reference top left)
Set character string Zx1 y1 ... NUL Output character string (...) to x1,y1; character ´NUL´ ($00)=end
Define character En1 data ... n1=character no.; data =number of bytes dep. on current font
Graphics commands with overlay mode
Graphics mode Vn1 n1: 1=set; 2=delete; 3=inverse; 4=replace; 5=inverse replace;
Set point Px1 y1 Set one pixel at coordinates x1, y1
Draw straight line Gx1 y1 x2 y2 Draw straight line from x1,y1 to x2,y2
Continue straight line Wx1 y1 Draw a straight line from last end point to x1, y1
Draw rectangle Rx1 y1 x2 y2 Draw a rectangle; x1,y1,x2,y2 = opposite corner points
Draw round corner Nx1 y1 x2 y2 Draw a rectangle with round corners; x1,y1,x2,y2 = corner points
Area with fill pattern Mx1 y1 x2 y2 ptn Draw area with pattern ptn (0..7); x1,y1,x2,y2 = corner points
Other graphics commands
Delete display D L Delete entire contents of display (set to white);
Invert display D I Invert entire contents of display;
Fill display D S Fill entire contents of display; (set to black);
Delete area Lx1 y1 x2 y2 Delete an area; x1,y1,x2,y2 = opposite corner points
Invert area Ix1 y1 x2 y2 Invert an area; x1,y1,x2,y2 = opposite corner points
Fill area Sx1 y1 x2 y2 Fill an area; x1,y1,x2,y2 = opposite corner points
Draw box Ox1 y1 x2 y2 ptn Draw a rectangle with fill pattern ptn (0..7); (always replace)
Draw round box Jx1 y1 x2 y2 ptn Draw a round corner with fill pattern ptn (0..7); (always replace)
Draw bar graph Bnr valu Set the bar graph with the ´nr´ (1..8) to the new user ´value'
Upload picture area Ux1 y1 data ... Load a picture area to x1,y1; see picture structure for picture data
Control / definition commands
Define bar graph B
R
L
O
U
nr x1 y1 x2 y2 aw ew ptn
Define bar graph to L(eft), R(ight), O(up), U(down)
with the ´nr´ (1..8). x1,y1,x2,y2 form the rectangle
enclosing the bar graph. aw, ew are the values for
0% and 100%. ptn=pattern (0..7).
Display control Cn1 n1=0: display off (entire contents unchanged) n1=1: display on
Select / Deselect
graphics lcd KSn1 Activate display with address n1 (n1=0..3; n1=255: all)
DDeactivate display with address n1 (n1=0..3; n1=255: all)
Power Save Mode Qn1 n1=1: Power Save for controller; RTS->high
n1=2: Power Save for controller and display; RTS->high, LCDON->low
Write I/O port Yn1 n2 n1=0..7: reset I/O port n1 (n2=0); set (n2=1); invert (n2=2) n1=8: Set all 8
I/O ports in accordance with n2 (=8 bit binary value)
Send commands
Hard copy Hx1 y1 x2 y2 An area is requested as a picture. The width and height are sent in pixels
first of all, followed by the actual picture data, via RS232.
Read I/O port Xn1 n1=0..7: load I/O port <n1> (1=H level=5V, 0=L level=0V) n1=8: load all 8
I/O ports I/O0..I/O7 as 8-bit binary value
Query display type ?This command is used to query the display type. 3 bytes are sent back:
128 64 V (128x64 dots, vertical picture)