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:
    coils: snux
    driverboards: wpc
    platform: p_roc

system11:
    ac_relay_delay_ms: 75
    ac_relay_driver: c_ac_relay

snux:
    flipper_enable_driver: c_flipper_enable_driver
    diag_led_driver: c_diag_led_driver
    platform:

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
#config_version=5

hardware:
    driverboards: wpc
    platform: p_roc

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

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

lights:
  test_light:
    number: l11
    subtype: matrix
  test_gi:
    platform: drivers
    number: test_gi
#config_version=5

hardware:
    driverboards: pdb
    platform: p_roc

p_roc:
  dmd_timing_cycles: 1, 2, 3, 4
  debug: 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

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

shows:
  test:
    - duration: 1
      lights:
        test_pdb_light: ff
    - duration: 1
      lights:
        test_pdb_light: C0
    - duration: 1
      lights:
        test_pdb_light: 0
    - duration: -1
      lights:
        test_pdb_light: ff

show_player:
  play_test_show: test

segment_displays:
  display1:
    number: 0