Datasheet

EA eDIPTFT70-A
Page 20
ELECTRONIC ASSEMBLY reserves
the right to change specifications
without prior notice. Printing and
typographical errors reserved.
EA eDIPTFT70: Touch Keyboard commands
after
reset
Command Codes Remarks
Frame settings
Keyboard frame colors
ESC
F
K
n1 n2 n3 s1 s2 s3
Set frame colors 1..32 (0=transparent) for keys (special keys code <32) n=normal;
s=selected; 1=frame outside; 2=frame inside; 3=filling
812817
Special key frame colors
S 81981G
Keyboard frame
ESC
K E n1 n2
Set frame for keyboard frames: n1=1..255 normal keys (Code >= 32)
n2=1..255 special keys (Code < 32); n1/n2=0: draw no frame
1
Keyboard label settings
Keyboard label color
ESC
F
F
n1 s2
Ser the textcolor 1..32 for keys.
(special keys Code<32)
n1=normal textcolor; s2=textcolor for selection
8,1
Secial key label color Y 1,8
Keyboard label font
ESC
K
F n1 n2 s1 s2
Set font (1..255) for keyboard label:
n=normal keys; s=special keys; 1=single letters; 2=strings
6,5
Key label string
L code Text... NUL
code=keycode; text...= alternative labelfor key (e.g. for special keys)
code=0: Clear alternative label for all keys
0
Label offset for selection O n1 n2 n1=X-offset; n2=Y-offset; n1,n2=0..7 +8 for negative direction 0, 0
Keyboard layout
Define keyboard
ESC
K B no codestr... NUL
define keyboard with number no=1..4 definieren;
"codestr" = string with keycodes, several lines are seperated by '|'; 'NUL' ($00): end of string
use backslash '\' ($5C) for special keycodes:
\1,\2,\3,\4: show keyboard no. 1, 2, 3, 4
\5: SHIFT use keyboard 2 for one key autofallback to no. 1
\6: CAPSLOCKtoggle between keyboard no. 1 and no. 2
\8: send code 8 = BACKSPACE for edit box
\A: send code 10 = CANCEL for edit box
\C: send code 12 = CLEAR for edit box
\D: send code 13 = SEND for edit box
\N: placeholder for a key with is not used and drawn
no
key-
board
de-
fined
Keyboard position
ESC
K P xx1 yy1 xx2 yy2 gap
xx1,yy1 bis xx2,yy2: rectangle enclosing the keyboard
gap: space between the keys
Using keyboard
Show keyboard
ESC
K
S
no n2
Show keyboard no=1..4
n2=0: put pressed keys into sendbuffer.
n2=1..15: activate edit box and send pressed keys to it
delete keyboard D n1
remove actually shown keyboard (touch areas) from screen:
n1=0: keyboard stays visible
n1=1: delete area or restore from clipboard (see command 'ESC KH')
Keyboard background H n1 n2
n1=1: save background into clipboard layer; n1=0: background is not saved
Set background color n2=1..32 (0=transparent)
0, 0
Key matrixmacro M code n2
code=keycode (code=0: all keycodes) Set MatrixMacro for all codes
n2 = 1..255 MatrixMacro number if key is pressed (n2=0: run no macro)
0
EA eDIPTFT70: Edit box commands
after
reset
Command Codes Remerks
Setting for edit box
Edit box frame colors
ESC F
Q n1 n2 n3
Set the frame colors 1..32 (0=transparent) for edit box:
n1=frame outside; n2=frame inside; n3=filling
8,1,1
Edit field text colors
H fd bd fa ba
Set text colors (1..32) for edit field:
f=font foreground; b=font background; d=deactivated; a=activated edit box
8,1
1,8
Offset for edit field
ESC E
O left top right bot Set offset from editbox frame to edit field
0,0,0,
Set font
F n1 Set font number n1=0..255
5
Set frame
E n1 n1=1..255: frame number for editbox; n1=0: no frame
1
Save edit box background
H n1 n1=1: save edit box background into clipboard layer; n1=0: background is not saved
0
Define edit box
Define and show edit box
ESC E
L
no n2 xx1 yy1 xx2 yy2
def.
Text
...
NUL
L: left; C: centerR: right assigned;
Define edit box number no=1..15 from xx1,yy1 to xx2,yy2 and draw
n2=max. text length; n2=0: no limit
default Text=userdefined default text; 'NUL' ($00): End of string
keine
Edit-
box
def.
C
R
Delete edit box
ESC E
D no n2
Delete edit box no=1..15 (no=0: all edit boxes)
n2=0: area remains visible
n2=1: delete are or restore from clipboard layer (see 'ESC E H')
Set edit box by touch
T no n2 n3
The edit box no=1..15 can be activated by touch panel.
n2= activate touchmacro; n3=deactivate touchmacro (n2/n3=0 touchmacro is not used)
Set password character
P no code
Set edit box no=1..15 input mode:
code=0: all character are shown; code=1..255: use wildcard for each character
0
Using edit box
Activate edit box
ESC E
A no Activates edit box with no=1..15 for editing; no=0: deactivates actually selected edit box
Get edit box string
G no
Put string from edit box no=1..15 into sendbuffer
no=0: put all edit box strings into sendbuffer
Send character to edit box
B code
Send onde character (code) to active edit box; special codes:
8: BACKSPACE deletes last character
10: CANCEL editing, set to default text
12: CLEAR edit field
13: SEND put string into sendbuffer, copy as default text
Send string to edit box
S Text... NUL Send a string to active edit box; 'NUL' ($00): end of string