PROMOTION TECHNICAL REFERENCE MANUAL
Document 15774(1.0.0.0)
49
Real-Time Graphic Commands
An alternative method to displaying images on the ProMotion is the direct manipulation of
display pixels in real time.
Set Pixels
Syntax
Esc [5z GS0; Pr; Pc Esc [0z
Esc [5z GS1; Pr; Pc Esc [0z
Notes
Use the above commands to set a pixel in real-time, where
GS0
indicates Buffer 0 and
GS1
indicates Buffer 1,
Pr
is the hex value of the row position (along the horizontal axis)
and
Pc
is the hex value of the column position (along the vertical axis).
You should clear the buffer prior to displaying the contents of the buffer.
Reset Pixels
Syntax
Esc [5z GC0; Pr; Pc Esc [0z
Esc [5z GC1; Pr; Pc Esc [0z
Notes
Use the above commands to clear a set pixel in real-time, where
GC0
indicates Buffer 0
and
GC1
indicates Buffer 1,
Pr
is the hex value of the row position (along the horizontal
axis) and
Pc
is the hex value of the column position (along the vertical axis).
Graphics Mode Command Examples
Example 1
The following example shows a series of commands that will clear the buffer contents, transfer a
graphics image and display
the contents on the display:
Esc
[5z GB0
Esc
[0z
Esc
[5z GL0; image_contents
Esc
[0z
Esc
[5z GD0
Esc
[0z
Note:
image_contents is either a TTB file or a string of ASCII characters that represent the
hex values of the image’s data bytes.