light (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
lights:
    light_01:
        number: 0
        subtype: matrix
        debug: True
    light_02:
        number: 1
        subtype: matrix
        debug: True
#config_version=5

light_settings:
    color_correction_profiles:
        correction_profile_1:
            gamma: 1
            whitepoint: [0.9, 0.8, 0.7]
            linear_slope: 0.75
            linear_cutoff: 0.1

named_colors:
    jans_red: [251, 23, 42]

lights:
  led1:
    number: 1
    default_on_color: red
    debug: True
    x: 0.4
    y: 0.5
    z: 0
  led2:
    channels:
      red:
        number: 4
      green:
        number: 3
      blue:
        number: 2
    debug: True
    x: 0.6
    y: 0.7
  led_bgr_2:
    type: bgr
    number: 42
    debug: True
  led3:
    channels:
      red:
        - number: 7
      green:
        - number: 8
      blue:
        - number: 9
      white:
        - number: 10
    debug: True
  led4:
    number: 11
    fade_ms: 1s
  led_corrected:
    number:
    color_correction_profile: correction_profile_1
  led_www:
    number: 23
    type: www
    debug: True
#config_version=5

light_stripes:
  stripe1:
    number_start: 10
    light_template:
      tags: test
    count: 5
    debug: True
  stripe2:
    number_start: 200
    number_template: 7-{}
    count: 5
    direction: 90
    start_x: 10
    start_y: 20
    distance: 5
    debug: True

light_rings:
  ring1:
    number_start: 20
    count: 12
    radius: 3
    start_angle: 90
    center_x: 100
    center_y: 50
    debug: True
#config_version=5

light_settings:
    default_color_correction_profile: correction_profile_1
    color_correction_profiles:
        correction_profile_1:
            gamma: 1
            whitepoint: [0.9, 0.8, 0.7]
            linear_slope: 0.75
            linear_cutoff: 0.1

lights:
  led1:
    number: 1