.playlb Method

Function:

Loads a new pattern to play on the five blue status indication LEDs.

Syntax:

pat.playlb(byref pattern as string, patint as pl_pat_int)

Returns:

---

See Also:

---


Part

Description

pattern

Pattern string, can include the following characters:

  • L#, where # is the number of the desired LED. If you want to turn on more than one LED, put the numbers together (e.g., L135 turns on LEDs 1, 3, and 5).
  • '-': all LEDs off
  • '~': 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

The on_pat_led_bar event is generated once the pattern finishes playing. Looped patterns never finish playing and thus the event is never generated for them.


.playlb Method

Details