Page 17
Printing and typographical errors reserved.
ELECTRONIC ASSEMBLY reserves the right to change specifications without prior notice.
EA eDIPTFT32-A
EA eDIPTFT32-A: Commands for backlight, I/O-port and misc
after
reset
Command
Codes
Remarks
Backlight commands
Illumination brightness
ESC
Y
H
n1
Set brightness of the LED illumination n1=0 to 100%.
100
Increase brightness
N
Increase brightness of the LED illumination (one step=1%)
Decrease brightness
P
Decrease brightness of the LED illumination (one step=1%)
Brightness changetime
Z
n1
Time n1=0..31 in 1/10sec for changing brightness from 0 to 100%
5
Illumination on/off
L
n1
LED n1=0: OFF; n1=1: ON; n1=2 to 255: LED switched ON for n1/10sec
1
Assign bar with backlight
B
no
Assign bar no=1..20 for changing brightness of the backlight
1
Asign instrument with
backlight
+
n1
Brightness is connected to instrument 1..4.
1
Save parameter
@
Save the actual brightness and changetime for poweron to EEPROM
Port commands
Write output port
ESC
Y
W
n1
n2
n1=0: Set all 8 output ports in accordance with n2 (=8-bit binary value)
n1=1..8: Reset output port n1 (n2=0); set (n2=1); invert (n2=2)
Ports
1-8=0
Read input port
R
n1
n1=0: Read all 8 input ports as 8-bit binary value (to sendbuffer)
n1=1..8: Read input port <n1> (1=H-level=VDD, 0=L-level=GND)
Port scan on/off
A
n1
The automatic scan of the input port is n1=0: deactivated; n1=1: activated
1
Invert input port
I
n1
The input port is n1=0: normal; n1=1: evaluated inverted
0
Matrix keyboard
M
n1
n2
n3
Specifies an external matrix keyboard at the inputs and outputs.
n1=number of inputs (1..8); n2=number of outputs (0..8); n3=debouncing (0..7)
0
Redefine input bitmacro
ESC
Y
D
n1
n2
n3
input port n1=1..8 is assigned by falling edge n2=0 to new BitMacro number n3=0..255
input port n1=1..8 is assigned by rising edge n2=1 to new BitMacro number n3=0..255
Redefine matrixmacro for
keys
X
n1
n2
Assign keynumber n1=1..65 with matrixmacro number n2=0..255
After release the key n1=0 run matrixmacro number n2=0..255
Other commands
Define color
ESC
F
P
no
R5
G6
B5
Set a new RGB value for color no. n1=1..32 (R5:Bit7..3; G6:Bit7..2; B5:Bit7..3)
Wait (pause)
ESC
X
n1
Wait n1 tenths of a second before the next command is executed.
Set RS485 address
ESC
K
A
adr
For RS232/RS485 operation only and only possible when Hardware address is 0.
The eDIP is assigned a new address adr (in the Power-On macro).
Tone on/off
ESC
Y
S
n1
The tone output (pin 16) becomes n1=0:OFF; n1=1:ON; n1=2 to 255:ON for n1/10s
OFF
String table code
ESC
S
T
n1
n1=0: no use of internal strings
n1>0: after code n1 appears following codes are internal string numbers (since V1.2)
0
Send bytes
ESC
S
B
num
data...
num (=1 to 255) bytes are sent to the sendbuffer data... = num Bytes.
In the source text of the macro programming, the number num must not be specified. This is
counted by the ediptftcompiler and entered.
Send version
V
The version is sent as a string to sendbuffer e.g. "EA eDIPTFT32-A V1.1 Rev.A TP+"
Send projectname
J
The macro-projectname is sent as a string to the sendbuffer e.g. "init / delivery state"
Send internal infos
I
Internal information about the edip is sent to the sendbuffer.