self.machine.led_rings.*¶
-
class
mpf.devices.led_group.LedRing(machine: mpf.core.machine.MachineController, name)¶ Bases:
mpf.devices.led_group.LedGroupA LED ring.
Accessing led_rings in code
The device collection which contains the led_rings in your machine is available via
self.machine.led_rings. For example, to access one called "foo", you would useself.machine.led_rings.foo. You can also access led_rings in dictionary form, e.g.self.machine.led_rings['foo'].You can also get devices by tag or hardware number. See the DeviceCollection documentation for details.
Methods & Attributes
Led_rings 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.
-