386
Platforms
©2000-2008 Tibbo Technology Inc.
8.3.9.3
On_pat Event
Function:
Generated when an LED pattern finishes playing.
Declaration:
on_pat
See Also:
Details
This can only happen for "non-looped" patterns. Multiple on_pat events may be
waiting in the event queue. When the event handler for this event is entered the
property is automatically set to the channel for which this event
was generated.
8.3.9.4
.Play Method
Function:
Loads a new LED pattern to play on the currently selected
LED channel (selection is made through the
property).
Syntax:
pat.play(byref pattern as string, patint as pl_pat_int)
Returns:
---
See Also:
---
Part
Description
pattern
Pattern string, can include the following characters:
'-': both LEDs off
'R' or 'r': red LED on
'G' or 'g': green LED on
'B' or 'b': both LEDs on
'~': looped pattern (can reside anywhere in the pattern
string)
'*': double-speed pattern (can reside anywhere in the
pattern string). You can use this symbol twice to x4 speed.
Adding even more '*' will not have any effect.
patint
Defines whether the pat.play method is allowed to interrupt
another pattern that is already playing:
0- PL_PAT_NOINT: cannot interrupt
1- PL_PAT_CANINT: can interrupt)
Details
386
385
385