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

sakurajin::LedController is an Arduino library for MAX7219 and MAX7221 Led display drivers. The code should work with most boards and architectures but I only test it for the ESP32 Dev Module. Feel free to create an issue if something is missing or not working correctly. Version 2.0.0 should have increased compatibility since the library is now header only and uses templates. The only reason why some boards are not compatible is because they do now provide the necessary dependencies or are not compatible with the Arduino framework.

The CI automatically tests the following boards(PlatformIO boards names):

  • esp32dev
  • d1_mini
  • uno
  • ATmega1280
  • leonardo
  • due (since 2.0.0)
  • teensy41 (since 2.0.0)
  • bluefruitmicro (since 2.0.0)

The fast mode of the script tests the following boards:

  • esp32dev
  • ATmega1280

All help regarding compatibility with more boards is welcome.

Documentation

The following links lead to their respective documentation:

If you have questions check the dicussions or open a new one.

SPI Pin Assignments

If you want to use hardware SPI you have to use the following port. Please keep in mind that the MOSI(Master out Slave in) and the SCK(Serial Clock) signal can be shared by multiple SPI devices, while the SS(Slave Select) signal must be unique to every device(You can use every free pin for this).

Arduino Board MOSI MISO SCK SS (Slave) SS (Master)
Uno or Duemilanove 11 or ICSP-4 12 or ICSP-1 13 or ICSP-3 10 -
Mega1280 or Mega2560 51 or ICSP-4 50 or ICSP-1 52 or ICSP-3 53 -
Leonardo ICSP-4 ICSP-1 ICSP-3 - -
Due ICSP-4 ICSP-1 ICSP-3 - 4, 10, 52
Deek-Robot Arduino 11 12 13 - 10
ESP32-WROOM 23 19 18 - 5