self.machine.flashers.*¶
-
class
mpf.devices.flasher.
Flasher
(machine, name)¶ Bases:
mpf.core.system_wide_device.SystemWideDevice
Generic class that holds flasher objects.
Accessing flashers in code
The device collection which contains the flashers in your machine is available via
self.machine.flashers
. For example, to access one called "foo", you would useself.machine.flashers.foo
. You can also access flashers in dictionary form, e.g.self.machine.flashers['foo']
.You can also get devices by tag or hardware number. See the DeviceCollection documentation for details.
Methods & Attributes
Flashers have the following methods & attributes available. Note that methods & attributes inherited from base classes are not included here.
-
flash
(milliseconds=None, **kwargs)¶ Flashe the flasher.
Parameters: milliseconds -- Int of how long you want the flash to be, in ms. Default is None which causes the flasher to flash for whatever its default config is, either its own flash_ms or the core- wide default_flash_ms settings. (Current default is 50ms.)
-
get_configured_driver
()¶ Reconfigure driver.
-