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

modes:
 - mode1
 - mode2

lights:
  led1:
    debug: True
    number:
    tags: tag1
  led2:
    debug: True
    number:
    tags: tag1
  led3:
    debug: True
    number:
    tags:
  led4:
    debug: True
    number:
    tags:
  led5:
    debug: True
    number:
    default_on_color: red
  led6:
    debug: True
    number:

light_player:
  "{machine.a == 7}":
    led1: red
  event1:
    led1:
      color: red
      fade: 0
      priority: 200
    led2:
      color: ff0000
      fade: 0
    led3:
      color: red
      fade: 0
  event2:
    tag1:
      color: blue
      fade: 200ms
      priority: 100
  event3:
    led1: lime-f500
    led2: lime - f 500ms
    led3: 00ff00-f.5s
  event4:
    tag1: 00ffff
  event5:
    led5: on

shows:
  show1:
  - time: 0
    lights:
      led1: red
      led2: red
      led3: red
  show2:
  - time: 0
    lights:
      led1: red
      led2: red
      led3: red
  - time: 1
  show3:
  - time: 0
    lights:
      led1: blue
      led2: blue
      led3: blue
  - time: 1
  show2_stay_on:
  - time: 0
    duration: -1
    lights:
      led1: red
      led2: red
      led3: red

show_player:
  play_show1: show_ext1
#config_version=5
lights:
  l_gi_1:
    number:
  l_gi_2:
    number:


named_colors:
   tt_yellow: [255, 220, 0]

show_player:
   skill_started:
      giSwipeDown:
         show_tokens:
            frontColor: black
            backColor: tt_yellow

shows:
  giSwipeDown:
    - time: 0
      lights:
        l_gi_1: (frontColor)
        l_gi_2: (backColor)

Mode config examples

Here are some example mode config files that go along with the machine-wide config above.

Note that there are multiple mode config examples here. You might not necessarily use more than one in your machine.

#config_version=5
mode:
  priority: 100
  game_mode: False

light_player:
  event5:
    led1:
      color: orange
    led2:
      color: orange
    led3:
      color: orange
      priority: 200
  "{machine.test == 23}":
    led4: red
#config_version=5
mode:
  priority: 200
  start_events: ball_starting
  stop_events: ball_ending

light_player:
  "{machine.test == 23}":
    led4: red
  "{current_player.test == 42}":
    led5: red

Show file examples

Here are some example show files that go along with the above config(s).

Note that there are multiple shows here.

#show_version=5
- lights:
    (led1): (color_on)
    (led2): (color_off)
    (led3): (color_off)
  duration: 1s
- lights:
    (led1): (color_off)
    (led2): (color_on)
    (led3): (color_off)
  duration: 1s
- lights:
    (led1): (color_off)
    (led2): (color_off)
    (led3): (color_on)
  duration: 1s
#show_version=5
- duration: -1
  shows:
    instance1:
      show: show_ext3
      show_tokens:
        led1: led1
        led2: led2
        led3: led3
        color_on: (light_color)
        color_off: black
    instance2:
      show: show_ext3
      show_tokens:
        led1: led4
        led2: led5
        led3: led6
        color_on: (light_color)
        color_off: black
#show_version=5
- shows:
    attract:
      show: show_ext2
      show_tokens:
        light_color: blue
  duration: 3s
- shows:
    attract:
      show: show_ext2
      show_tokens:
        light_color: red
  duration: 3s