Datasheet

EA eDIPTFT70-A
Page 17
ELECTRONIC ASSEMBLY reserves
the right to change specifications
without prior notice. Printing and
typographical errors reserved.
EA eDIPTFT70-A: Backlight commands
after
reset
Command Codes Remarks
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 0
Asign instrument with
backlight
+ n1 Brightness is connected to instrument 1..4. 0
Save parameter @ Save the actual brightness and changetime for poweron to EEPROM
EA eDIPTFT70-A: I/O port commands
after
reset
Command Codes Remarks
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
Extended outputs
ESC
Y E n1 n2 n3
Set the outputs of the external 74HC4094 from port n1=0..255 to port n2=0..255; n3=0: low; n3=1:
high; n3=2: invert;
EA eDIPTFT70-A: Other commands after
reset
Command Codes Remarks
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
0
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).
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.
EA eDIPTFT70-A: Sound commands
after
reset
Command Codes Remarks
Tone buzzer on/off
ESC
Y S n1 The tone output (Pin 16) becomes n1=0: OFF; n1=1: ON; n1=2..255: ON for n1/10s AUS
Sound settings
ESC
Y V n1 n2 n3 n4
n1=0..7: set volume for a soundqueue and tonscale notes
n2=0..127: wait n2x10ms between the sounds
n3=1..15: repeat counter; n3=0: loop
n4=0..2: Mode; 0=ignbore touchsounds, 1=interrupted, 2=stops by touchsounds
7,10,1,1
Play soundqueue
ESC
Y Q data... NUL play soundqueue; sound nr 1..80 (max. 90 Sounds); #YQ 0 stops playing;
Note queue
ESC
Y T "Notestr" NUL
Allowed characters in "notestr" (max 90 notes):
CDEFGAH = notes from one-line octave; cdefgah = notes from two-line octave; P= pause; 1..8 =
time divisor for following notes
Play touchsound
ESC
Y - n1 n2 play sound number n1=1..80; n2=0..7: volume; a played soundqueue will be affected ('#YV')