.play Method
Function: |
Loads a new LED pattern to play on the currently selected LED channel (selection is made through the pat.channel 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:
|
patint |
Defines whether the pat.play method is allowed to interrupt another pattern that is already playing:
|
Details
The maximum pattern length is 16 "steps." The on_pat event is generated once the pattern finishes playing. Looped patterns never finish playing and thus the event is never generated for them.
Note that channels 1-4 require you to map LED control lines. See the pat.greenmap and pat.redmap properties for details.