self.machine.led_stripes.*

class mpf.devices.led_group.LedStrip(machine: mpf.core.machine.MachineController, name)

Bases: mpf.devices.led_group.LedGroup

A LED stripe.

Accessing led_stripes in code

The device collection which contains the led_stripes in your machine is available via self.machine.led_stripes. For example, to access one called "foo", you would use self.machine.led_stripes.foo. You can also access led_stripes in dictionary form, e.g. self.machine.led_stripes['foo'].

You can also get devices by tag or hardware number. See the DeviceCollection documentation for details.

Methods & Attributes

Led_stripes have the following methods & attributes available. Note that methods & attributes inherited from base classes are not included here.

color(color, fade_ms=None, priority=0, key=None, mode=None)

Call color on all leds in this group.

get_token()

Return all LEDs in group as token.