|
Pat.Play Method |
Top Previous Next |
Function: |
Loads new LED pattern to play. |
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). New in V1.1: You can use this symbol twice and, thus, obtain x4 speed if necessary! |
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
Maximum pattern length is 16 "steps". The on_pat event is generated once the pattern finishes playing (looped patterns never finish playing).