User`s guide

Chapt
er
5
BASIC
Commands
79
LED
Purpose
To specify the LED lighting behavior.
Syntax
LED(number%, mode%, duration%)
Remarks
"number%" is a positive integer variable, indicating the LED number.
Value Meaning
1
2
Red LED
Green LED
"mode%" is an integer variable, indicating the digital output mode. The values of
the mode and their interpretation are listed below.
Value Meaning
1 Turn on the LED for the specific duration and
then go back off.
2 Turn off the LED for the specific duration and
then go back on.
3 Flash the LED for a specific duration repeatedly.
The flashing period equals 2Xduration.
"duration%" is an integer variable, specifying a period of time in units of 10
milliseconds. A value of 0 in this argument will keep the LED in the specific state
indefinitely.
Example
ON READER(1) GOSUB BcrData_1
...
BcrData_1:
BEEP(2000,5)
LED(2, 1, 5)
' GOOD READ LED for 520
Data$ = GET_READER_DATA$(1)
...
5.14 Keypad Commands
All the portable terminals provide a built-in keypad for data input. This section describes
the commands relating to the keypad operation.