Skip to content

rpi_dmd:

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 guide to config file examples for more examples of real configs in action.

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

The rpi_dmd: section of your config is where you configure a RPi DMD. All settings are directly passed to the rpi-rgb-led-matrix library. Read their documentation (or the source) if in doubt.

Optional settings

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

brightness:

Single value, type: integer. Default: 100

Brightness value to use between 0 and 100%.

chain_length:

Single value, type: integer. Default: 1

Number of panels in your chain. Longer chains mean less frames per second.

cols:

Single value, type: integer. Default: 32

How many columns of LEDs does your matrix have?

daemon:

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

Leave this at False of thing will go wrong.

disable_hardware_pulsing:

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

Disable hardware pulsing. Only useful for debugging.

drop_privileges:

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

Drop root rights after opening the hardware. It is highly recommended to leave it this way.

gpio_slowdown:

Single value, type: integer. Default: 1

Slow down the GPIOs a bit. Otherwise the RPi might be too fast for your LEDs.

hardware_mapping:

Single value, type: one of the following options: regular, adafruit-hat, adafruit-hat-pwm. Default: regular

Select which hardware you are using. Consult manual if in doubt.

inverse_colors:

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

Inverse colors. You know it if you see it.

led_rgb_sequence:

Single value, type: string. Default: RGB

The color order of your LEDs. You know it if you see that colors are mixed up.

multiplexing:

Single value, type: integer. Default: 0

Select your multiplexing settings. Consult manual.

parallel:

Single value, type: integer. Default: 1

How many chains to run in parallel?

pixel_mapper_config:

Single value, type: string. Default: ""

Select your pixel mapper. Consult manual.

pwm_bits:

Single value, type: integer. Default: 11

How many bits to use for PWM?

pwm_lsb_nanoseconds:

Single value, type: integer. Default: 130

On-time for your LEDs. Lower means more fps but potential less quality.

row_address_type:

Single value, type: integer. Default: 0

Row address type. Consult manual.

rows:

Single value, type: integer. Default: 32

How many rows of LEDs does your matrix have?

scan_mode:

Single value, type: integer. Default: 0

Scan mode. 0 = progressive; 1 = interlaced. Consult manual.

show_refresh_rate:

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

Print refresh rate on terminal.


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