385
TIDE and Tibbo BASIC User Manual
©2000-2008 Tibbo Technology Inc.
blink three times. Again, this is not a looped pattern, so after it finishes playing the
on_pat event is generated and the "permanent green" pattern is loaded again.
8.3.9.1
.Channel Property
Function:
Selects/returns the LED channel (status LED pair) to work
with.
Type:
Byte
Value Range:
The value of this property won't exceed 4 (even if you
attempt to set higher value). Default= 0 (channel 0
selected).
See Also:
---
Details
Channels are enumerated from 0. All other properties, methods, and an event of
this object relate to the currently selected channel. Note that this property's value
will be set automatically when the event handle for the
event is entered.
8.3.9.2
.Greenmap Property
Function:
For the selected LED channel (selection is made through
the
property), sets/returns the number of
the I/O line that will act as a green LED control line.
Type:
Enum (pl_int_num, byte)
Value Range:
Platform-specific, see the list of pl_int_num constants in
the platform specifications.
Default values:
Channel 0: (-1) (no mapping, read-only): the green
status LED (control line) of Tibbo device is always used by
this channel;
Channels 1-4: PL_IO_NULL (non-existent line).
See Also:
Details
Channel 0 is special -- its LED control lines can't be remapped. This is because
channel 0 uses standard green and red status LEDs (they are called SG and SR).
For channel 0, reading the property always returns (-1), and writing has no effect.
All other channels use regular I/O lines of Tibbo devices. Any I/O line can be
selected to be the green control line of the selected channel. By default, all control
lines are mapped to the non-existent line PL_IO_NULL. Remap as needed and don't
forget to configure the selected I/O line as an output -- this won't happen
automatically.
386
385
387