LedController  2.0.2
A library for the MAX7219 and the MAX7221 Led display drivers.
The controller_configuration

Check the sakurajin::controller_configuration for more infomation about its functions or look for the Examples.

This tutorial explains some of the fields of the sakurajin::controller_configuration and how to use it properly. All the attributes are explained on the page for the sakurajin::controller_configuration, look there if anything is missing. On this page each option also lists when it was introduced.

Required choices/options

To determine the required options there are a few choices that need to be made.

SPI configuration

First off you need to choose between Hardware SPI and Software SPI. You can find more information about it on this page.

If you choose Software SPI you need to set the following options:

If you choose hardware SPI the following option need to be set:

Multi Row configuration

First off this decision has to be made even if there is only one row (in that case it does not matter which one since they behave the same). For the multi row support you have to decide between virtual multi row or real multi row. You can read the page on multi row for more information on how this works.

Virtual multi row is the default and the enabled mode when no changes are mode from previous versions. For virtual multi row you have to set the following options:

For real multi row the following option have to be set:

If you only have one row you can set either SPI_CS or row_SPI_CS[0] and you can ignore virtual_multi_row.

Optional choices/options

The following options are optional and the default value should work fine in most cases.

Removed choices/options

The following options where removed at some point.

  • rows Lists the number of rows (only existing 1.7.2)
  • row_SPI_CS has been changed from pointer to an actual array with fixed size (only existing 1.7.2)