blinkenlights: - The Mission Pinball Framework (2024)

This is a config file reference. Click for instructions.

This page is reference material which explains every setting and option for this section of an MPF yaml config file.See the instructions for config files for formatting and other details. See our guideto config file examples for more examples of real configs in action.

Valid in
machine config filesYES blinkenlights: - The Mission Pinball Framework (1)
mode config filesNO blinkenlights: - The Mission Pinball Framework (2)

The blinkenlights: section of your config file is used to definelights on your pinball machine that can be shared by multiple differentmodes at the same time. Blinkenlights work best with RGB LEDs, becauseeach mode that uses a blinkenlight can specify a color that theblinkenlight should flash for that mode. The blinkenlight will thenflash each of its colors in a cycle according to a given schedule.

Here's an example section:

#! lights:#! l_left_ramp_arrow:#! channels:#! red:#! number: 1#! green:#! number: 2#! blue:#! number: 3#! l_right_ramp_arrow:#! channels:#! red:#! number: 4#! green:#! number: 5#! blue:#! number: 6blinkenlights: blinkenlight_1: color_duration: 1s off_when_multiple: false light: l_left_ramp_arrow priority: 1000 blinkenlight_2: cycle_duration: 1s off_when_multiple: false light: l_right_ramp_arrow priority: 1000

With the above configuration, two blinkenlights are configured:blinkenlight_1 and blinkenlight_2. You can then use ablinkenlight_player to add or remove colors to these blinkenlights from withinyour modes.

The options are as follows:

Optional settings

The following sections are optional in the blinkenlights: section ofyour config. (If you don't include them, the default will be used).

color_duration:

Single value, type: time string (ms)(Instructions for entering time strings). Defaults to empty.

Either color_duration or cycle_duration (see below) must bespecified for each blinkenlight, but not both.

This specifies the amount of time that each of the blinkenlight'scolors will be turned on. For example, if this value is 1s, then eachof the blinkenlight's colors will be on for 1 second.

The more colors that are added to the blinkenlight when color_durationis specified, the longer it will take to cycle through all the colors.If you want the blinkenlight's cycle to always last the same amount oftime regardless of how many colors the blinkenlight has, then usecycle_duration instead (see below).

cycle_duration:

Single value, type: time string (ms)(Instructions for entering time strings). Defaults to empty.

Either cycle_duration or color_duration (see above) must bespecified for each blinkenlight, but not both.

This specifies the length of one cycle of the blinkenlight. Theblinkenlight will show all of its colors in one cycle. This includes the"off" color at the end of the cycle, if applicable (seeoff_when_multiple below). For example, if this value is 1s, and theblinkenlight has 2 colors in its list, and off_when_multiple isfalse, then each color will be displayed for 0.5 seconds. Ifoff_when_multiple is true, then the "off" color will count as acolor in the blinkenlight's cycle, and so the each color will only bedisplayed for 1/3 of a second.

The more colors that are added to the blinkenlight when cycle_durationis specified, the shorter each color will be displayed. If you want eachcolor to be displayed for a certain length of time regardless of thenumber of colors, then use color_duration instead (see above).

light:

Single value, type: string name of a lights: device. Defaults to empty.

This is the name of the light which this blinkenlight controls.

off_when_multiple:

Single value, type: boolean (true/false). Default: false

This specifies whether or not to include an "off" color at the end ofeach cycle when the blinkenlight has more than one color in its list.

For example, if the blinkenlight has 2 colors (red and green) andoff_when_multiple is False (the default value), then the cycles willbe red, green, red, green. However, if off_when_multiple is True,then the cycles will be red, green, off, red, green, off. The "off"color in this case is treated as another color for the purposes of thecolor_duration and cycle_duration settings above.

A blinkenlight that only has 1 color in its list will be off at the endof its cycle, regardless of whether off_when_multiple is True orFalse. For example, the cycles of a blinkenlight that has 1 color(red) will be red, off, red, off.

priority:

Single value, type: integer. Default: 0

The priority of the blinkenlight. If there is a show that uses thisblinkenlight's light, and the show and the blinkenlight are happeningat the same time, then the light will be controlled by whichever one hasthe highest priority.

console_log:

Single value, type: one of the following options: none, basic, full.Default: basic

Log level for the console log for this device.

debug:

Single value, type: boolean (true/false). Default: false

Set this to true to see additional debug output. This might impact theperformance of MPF.

file_log:

Single value, type: one of the following options: none, basic, full.Default: basic

Log level for the file log for this device.

label:

Single value, type: string. Default: %

Name of this device in service mode.

tags:

List of one (or more) values, each is a type: string. Defaults toempty.

Help us write it!

This section is unwritten or needs an update or edit. Can you help write it?Get your name in lights and geeky pinball bragging rights! Hit the magic sparkly wand tothe right of the title to see this page source on GitHub. Then add/edit andsubmit your change. It's easy!

CLICK TO LEARN HOW TO EDIT THIS PAGE

Help us write it!

This section is unwritten or needs an update or edit. Can you help write it?Get your name in lights and geeky pinball bragging rights! Hit the magic sparkly wand tothe right of the title to see this page source on GitHub. Then add/edit andsubmit your change. It's easy!

CLICK TO LEARN HOW TO EDIT THIS PAGE

Something missing or wrong? You can fix it!

This website is edited by people like you!Is something wrong or missing? Is something out of date, or can you explain it better?

Please help us! You can fix it yourself and be an official "open source" contributor!

It's easy! See our Beginner's guide to editing the docs.

Page navigation via the keyboard: < >

You can navigate this site via the keyboard. There are two modes:

General navigation, when search is not focused:

  • F , S , / : open search dialog
  • P , , : go to previous page
  • N , . : go to next page

While using the search function:

  • Down , Up : select next / previous result
  • Esc , Tab : close search
  • Enter : go to highlighted page in the results
blinkenlights: - The Mission Pinball Framework (2024)

References

Top Articles
Latest Posts
Article information

Author: Dan Stracke

Last Updated:

Views: 6272

Rating: 4.2 / 5 (63 voted)

Reviews: 94% of readers found this page helpful

Author information

Name: Dan Stracke

Birthday: 1992-08-25

Address: 2253 Brown Springs, East Alla, OH 38634-0309

Phone: +398735162064

Job: Investor Government Associate

Hobby: Shopping, LARPing, Scrapbooking, Surfing, Slacklining, Dance, Glassblowing

Introduction: My name is Dan Stracke, I am a homely, gleaming, glamorous, inquisitive, homely, gorgeous, light person who loves writing and wants to share my knowledge and understanding with you.