Q-Code User Manual
Ver. 7.0 2021/11/30
105
3.9.25 Sentence
For maintaining a neat program, user could write codes in the
[Sentence]
section, rather than copy the
same program to everywhere in need. Programs in the
[Sentence]
section could be applied in
[Path]
,
[Background1]
and
[Background2]
sections.
Each sentence consists of a path name, a “: ” , and several steps.
Ex.
[Sentence]
S1: PlayV(CH2,$V0), DELAY(0.1), PlayV(CH2,$V1), DELAY(0.2), PlayV(CH2,$V2)
S2: PlayV(CH2,$V3), PlayV(CH2,$V4), PlayV(CH2,$V5)
S3: PlayV(CH2,$V6), DELAY(0.1), PlayV(CH2,$V7)
[Path]
PowerOn:
KEY1
TR1: PlayS($S1)
; Play Sentence “S1”.
[Background1]
BG1: PlayS($S1), PlayS($S3)
; Play Sentence “S1” and “S3”.
[Background2]
BG3: PlayS($S1), PlayS($S2)
; Play Sentence “S1” and “S2”.
Note: For NY5+ / NY6 / NY7 / NX1, the function of Sentence is aimed for combining resource
files (Melody, Speech, Action,etc.) as one single sentence. Therefore, the Sentence
section only allows the Play and Delay commands, other commands cannot be used in
the Sentence section.
Q-Code
provides LED Sentence editor to help editing Action / PWM output sentence.
Operating steps: Sentence
→ LED →
Add LED
→
New Step
→
OK, the actual operating steps are
shown below.
After clicking on LED, a pop-up window will be shown as the following picture. Please enter the name
of output status.