self.machine.led_player

class mpf.config_players.led_player.LedPlayer(machine)

Bases: mpf.config_players.device_config_player.DeviceConfigPlayer

Sets LED color based on config.

Accessing the led_player in code

The led_player is available via self.machine.led_player.

Methods & Attributes

The led_player has the following methods & attributes available. Note that methods & attributes inherited from the base class are not included here.

clear_context(context)

Remove all colors which were set in context.

get_express_config(value)

Parse express config.

get_full_config(value)

Return full config.

play(settings, context, calling_context, priority=0, **kwargs)

Set LED color based on config.