Q-Code User Manual
Ver. 7.0 2021/11/30
214
4.15.1 TouchKey_ON
Turn on the Touch-Key scanning function. When user enables the function, the Touch-Keys will keep
scanning.
Note:
1. NY4 / NY5 / NY5+ / NY6 / NY7 / NX1 do not support this command.
2. The system default is TouchKey_ON, user doesn’t need to issue TouchKey_On command
after the PowerOn command.
3. After issuing PowerOn command, the default scanning speed is TouchKey_Scan_Normal.
4. After issuing TouchKey_ON, the scanning status will keep the last setting.
4.15.2 TouchKey_OFF
Turn off the Touch-Key scanning function. If user turns off the function, the Touch-Keys won’t scan.
Note: NY4 / NY5 / NY5+ / NY6 / NY7 / NX1 do not support this command.
Ex.
[Input State]
KEY1:
[Path]
PowerOn
: TouchKey_OFF, Delay(0.3), KEY1, TouchKey_ON
; When PowerOn is issued, closing the Touch-Key scanning function; then rescan Touch-Keys
after delaying 0.3 second.
4.15.3 TouchKey_CLR
The command is used to clear the status of Touch-Keys. When the status is clean, Touch-Keys will
rescan.
Note: NY4 / NY5 / NY5+ / NY6 / NY7 / NX1 do not support this command.
Ex.
[Input State]
KEY1: TR1
[Path]
PowerOn
: KEY1
; Set the status of Touch-Key State as KEY1.
TR1: PlayA(Ch1,$VIO0), TouchKey_CLR
; After pressing TR1, executing PlayA(Ch1,$VIO0). When PlayA(Ch1,$VIO0) finished playing,
executing the TouchKey_CLR command, clearing the current status of Touch-Keys, then,
rescanning Touch-Keys. If TR1 is pressed when VIO0 finished playing,
Q-Code
will keep
executing PlayA(Ch1,$VIO0). If TR1 isn’t pressed,
Q-Code
will enter Sleep mode.