Warning

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

This is the documentation for MPF 0.56+, 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.

flippers (example config files)

Machine config examples

Here are some example machine-wide config files that show real-world examples of how these configs are used.

Note that there are multiple machine config examples here. They’re just included to show different options. You wouldn’t actually use more than one.

#config_version=5

game:
    balls_per_game: 1

coils:
    c_flipper_main:
        number:
        default_pulse_ms: 10
        default_hold_power: 0.125
    c_flipper_hold:
        number:
        default_hold_power: 1.0


switches:
    s_flipper:
        number: 1
        tags: left_flipper
    s_flipper_eos:
        number: 2

flippers:
    f_test_single:
        debug: true
        main_coil: c_flipper_main
        activation_switch: s_flipper
        sw_flip_events: flip_single
        sw_release_events: release_single

    f_test_hold:
        debug: true
        main_coil: c_flipper_main
        hold_coil: c_flipper_hold
        activation_switch: s_flipper

    f_test_hold_eos:
        debug: true
        main_coil: c_flipper_main
        hold_coil: c_flipper_hold
        activation_switch: s_flipper
        eos_switch: s_flipper_eos
        use_eos: true
        sw_flip_events: flip_hold
        sw_release_events: release_hold

    f_test_flippers_with_settings:
        debug: true
        main_coil: c_flipper_main
        power_setting_name: flipper_power
        activation_switch: s_flipper
#config_version=5

hardware:
  platform: fast
  driverboards: fast

switches:
    s_left_flipper:
        number: 0-0
        tags: left_flipper
    s_right_flipper:
        number: 0-1
        tags: right_flipper

coils:
    c_flipper_left_main:
        number: 0-0
        default_pulse_ms: 30
    c_flipper_left_hold:
        number: 0-1
        default_hold_power: 1.0
    c_flipper_right_main:
        number: 0-2
        default_pulse_ms: 30
    c_flipper_right_hold:
        number: 0-3
        default_hold_power: 1.0

flippers:
    left_flipper:
        main_coil: c_flipper_left_main
        hold_coil: c_flipper_left_hold
        activation_switch: s_left_flipper
        enable_events: machine_reset_phase_3
    right_flipper:
        main_coil: c_flipper_right_main
        hold_coil: c_flipper_right_hold
        activation_switch: s_right_flipper
        enable_events: machine_reset_phase_3
#config_version=5

hardware:
  platform: fast
  driverboards: fast

switches:
    s_flipper_single:
        number: 0-0
    s_flipper_single_eos:
        number: 0-1
    s_flipper_dual_wound:
        number: 0-2
    s_flipper_dual_wound_eos:
        number: 0-3

coils:
    c_flipper_single_main:
        number: 0-0
        default_pulse_ms: 30
        default_hold_power: .3
    c_flipper_dual_wound_hold:
        number: 0-1
        default_hold_power: 1.0
    c_flipper_dual_wound_main:
        number: 0-2
        default_pulse_ms: 30

flippers:
    single_flipper:
        main_coil: c_flipper_single_main
        activation_switch: s_flipper_single
        eos_switch: s_flipper_single_eos
        use_eos: true
        repulse_on_eos_open: true
        enable_events: enable_flipper_single
        disable_events: disable_flipper_single
    dual_wound_flipper:
        main_coil: c_flipper_dual_wound_main
        hold_coil: c_flipper_dual_wound_hold
        activation_switch: s_flipper_dual_wound
        eos_switch: s_flipper_dual_wound_eos
        use_eos: true
        repulse_on_eos_open: true
        enable_events: enable_flipper_dual_wound
        disable_events: disable_flipper_dual_wound