segment_displays:

Config file section

Valid in machine config files YES
Valid in mode config files NO

The segment_displays: section of your config is where you define your segment displays. This can be 7-segment or alphanumeric displays which are typically used in older machines.

Required settings

The following sections are required in the segment_displays: section of your config:

number:

Single value, type: string. Defaults to empty.

The number of the display. The meaning depends on the hardware platform.

Optional settings

The following sections are optional in the segment_displays: section of your config. (If you don’t include them, the default will be used).

size:

Single value, type: int. Defaults to 7.

The number of characters in the segment display. This value should be set to match the number of characters in your physical hardware (or virtual emulator). It is important to set this number correctly for the text transition effects.

integrated_dots:

Single value, type: bool. Defaults to false.

Determines whether or not the physical segment display has integrated dots/periods in each character rather than taking up an entire character. When set to true, dots/periods are collapsed with the preceding character when calculating text transition effects.

integrated_commas:

Single value, type: bool. Defaults to false.

Determines whether or not the physical segment display has integrated commas in each character rather than taking up an entire character. When set to true, commas are collapsed with the preceding character when calculating text transition effects.

initial_color:

List of one (or more) color values, type: color. Defaults to white.

The initial color for each character in the display (if the platform supports it). If a single color is supplied, all characters in the display will be set to that color. See Specifying Colors in Config Files for more information on specifying colors in config files.

default_transition_update_hz:

Single value, type: float. Defaults to 30.

The speed (steps per second) at which text transition effects will be updated in the display.

platform:

Single value, type: string. Defaults to empty.

This can be used to overwrite the platform which is defined in the hardware section for segment_displays.

platform_settings:

Single value, type: dict. Defaults to empty.

Platform specific settings. See your segment platform documentation.

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 the performance 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 to empty.

Not used.