Warning

This is the dev documentation for an unreleased version of MPF!

This is the documentation for MPF 0.53+, which is the “dev” (next) release of MPF that is a work-in-progress. Unless you’re specifically looking for this version, you probably want to use the version of documentation called “latest” which is for the latest released version of MPF. That documentation is at docs.missionpinball.org/en/latest.

Flashers

Related Config File Sections
coils:
coil_player:
lights:
light_player:
flasher_player:

MPF includes support for flashers, which are essentially just really bright lights that are controlled via high-power driver transistors instead of low-power lighting circuitry.

../../_images/flasher1.jpg ../../_images/flasher2.jpg

MPF’s flasher devices are only used in older machines (WPC, Stern SAM, System 11) since modern LED-based machines typically use regular LED devices (or combinations of them) as flashers. (So basically a “flasher” in MPF is any single-color light that’s connected to a driver output rather than a light output.

Hardware

#89 and #906 bulbs are commonly used as flashers in pinball machines. Those are rated at 13V but typically driven at higher voltages for only a very short amount of time. Turning them on permanently will burn quickly in most machines.

Config

Starting with MPF 0.50 flashers and lights have been unified. Depending on your platform flashers might be lights: or coils:. In most cases they are configured as coil:

coils:
  flasher_coil_4:
    number: 4
    allow_enable: True

Then add them as light:

lights:
  flasher_4:
    number: flasher_coil_4
    platform: drivers

Now you can use them in flasher_player: (or also in light_player: if you want to enable the flasher permanently).

flasher_player:
  flash:
    flasher_01: 100ms

Monitorable Properties

For dynamic values and conditional events, the prefix for lights is device.lights.<name>.

color
The color of this string. If you set it to brightness values all color channels
will have the same value. Brightness 100 (of 255) will be hex 64 and color 646464.