p_roc (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

hardware:
    platform: p_roc

p_roc:
  driverboards: pdb
  use_separate_thread: False
  dmd_timing_cycles: 1, 2, 3, 4
  debug: true
  trace_bus: True

switches:
    s_test_000:
        number: 0
    s_test_001:
        number: 2
    s_test:
        number: 23
    s_test_no_debounce:
        number: 24
        debounce: quick
    s_slingshot_test:
        number: 40
    s_direct:
        number: SD01
    s_matrix:
        number: 2/3


coils:
    c_test:
        number: A1-B1-2
        default_pulse_ms: 23
    c_test_allow_enable:
        number: A1-B1-3
        default_pulse_ms: 23
        default_hold_power: 1.0
    c_slingshot_test:
        number: A0-B1-0
    c_test2:  # unused. just to configure bank 0
        number: A0-B0-0
    c_direct:
        number: C01
    test_gi:
        number: A2-B0-3
        default_hold_power: 1.0
        default_pulse_ms: 0
    c_direct2_pulse_power:
        number: C02
        default_pulse_power: 0.9
        default_pulse_ms: 20

autofire_coils:
    ac_slingshot_test:
        coil: c_slingshot_test
        switch: s_slingshot_test

lights:
  test_pdb_light:
    number: C-A2-B0-0:R-A2-B1-0
    subtype: matrix
  test_direct_light:
    number: L01
  test_gi:
    platform: drivers
    number: test_gi

segment_displays:
  display1:
    number: 0
#config_version=5

hardware:
    platform: p_roc

p_roc:
    driverboards: wpc
    use_separate_thread: False
    trace_bus: True
    debug: true

switches:
    s_test_fliptronics:
        number: sf1
    s_test_direct:
        number: sd1
    s_test_matrix:
        number: s26
    s_slingshot_test:
        number: s20

coils:
    c_test_direct:
        number: c01
        default_pulse_ms: 23
    c_test_fliptronics:
        number: fllm
        default_pulse_ms: 23
    test_gi:
        number: g01
        default_pulse_ms: 0
    c_slingshot_test:
        number: c02
lights:
  test_light:
    number: l11
    subtype: matrix
  test_gi:
    platform: drivers
    number: test_gi

autofire_coils:
    ac_slingshot_test:
        coil: c_slingshot_test
        switch: s_slingshot_test
#config_version=5

hardware:
    coils: snux
    platform: p_roc

p_roc:
    driverboards: wpc
    use_separate_thread: False
    trace_bus: True
    debug: true

system11:
    ac_relay_delay_ms: 75
    ac_relay_driver: c_ac_relay
    platform: p_roc

snux:
    diag_led_driver: c_diag_led_driver

switches:
    s_test_fliptronics:
        number: sf1
    s_test_direct:
        number: sd1
    s_test_matrix:
        number: s26

coils:
    c_test_direct:
        number: c01
    c_test_a_side:
        number: c02a
    c_test_c_side:
        number: c02c
        default_hold_power: 1.0
    c_flipper_enable_driver:
        number: c23
        default_hold_power: 1.0
    c_diag_led_driver:
        number: c24
        default_hold_power: 1.0
    c_ac_relay:
        number: c25
        default_hold_power: 1.0