HP Retail Integrated 2x20 Display Programming Guide

14
3.1.8 EMAX Command Mode
Command
Hex
Function Description
ESC DC1
1B 11
Overwrite mode
ESC DC2
1B 12
Vertical mode
ESC DC3
1B 13
Horizontal scroll mode
ESC [ D
1B 5B 44
Move cursor left
BS
08
Move cursor left
ESC [ C
1B 5B 43
Move cursor right
HT
09
Move cursor right
ESC [ A
1B 5B 41
Move cursor up
ESC [ B
1B 5B 42
Move cursor down
ESC [ H
1B 5B 48
Move cursor to home position
HOM
0B
Move cursor to home position
ESC [ L
1B 5B 4C
Move cursor to left-most position
CR
0D
Move cursor to left-most position
ESC [ R
1B 5B 52
Move cursor to right-most position
ESC [ K
1B 5B 4B
Move cursor to bottom position
ESC l x y
1B 6C x y
1x20, y =1,2
Move cursor to specified position
ESC @
1B 40
Initialize display
CLR
0C
Clear display screen, and clear string mode
CAN
18
Clear cursor line, and clear string mode
ESC * n
1B 2A n 1n4
Brightness mode
ESC _ n
1B 5F n n = 0,1
Set cursor ON/OFF
ESC f n
1B 66 n
Select international fonts
ESC c n
1B 63 n
Select fonts, ASCII code or JIS code
ESC = n
1B 3D
Select peripheral device, display or printer
n = 1; enable printer, disable display
n = 2; disable printer, enable display
n = 3; enable printer, enable display