MatrixControl is an Arduino library for MAX7219 and MAX7221 Led Matrix display drivers.
This library was developed based on this.
The original library also supports 8-segment LEDs, but this library does not support 8-segment LEDs.
Only supports cascaded 8x8 Led Matrix.
While the original library is highly versatile, the processing of cascaded LEDs is inefficient.
This library speeds up the processing of cascaded LEDs.
The original library used software SPI, but this library can use both software SPI and hardware SPI.
-
Software SPI(Default)
#define BITBANG 1
-
Hardware SPI
#define BITBANG 0
diffMillis[LedControl]=1973[ms]
diffMillis[LedControl]=1973[ms]
diffMillis[LedControl]=25565[ms]
diffMillis[LedControl]=25574[ms]
It's up to 23 times faster.
diffMillis[MatrixControl]=293[ms]
diffMillis[MatrixControl]=292[ms]
diffMillis[MatrixControl]=1093[ms]
diffMillis[MatrixControl]=1094[ms]
Documentation for the library is on the Github Project Pages.
This library is compatible with the original library.
The library can be installed using the standard Arduino library install procedure.
See source code.
- MatrixControl_Basic
For Basic Test. For compatibility verification. - LedControl-Scroll-FullSpeed
Full speed scrolling with the LedControl library. For speed comparison. - MatrixControl-Scroll-FullSpeed
Full speed scrolling with the MatrixControl library. For speed comparison. It ends in an instant. - MatrixControl-Scroll-RightToLeft
Scroll from right to left using the MatrixControl library. - MatrixControl-Scroll-LeftToRight
Scroll from left to right using the MatrixControl library.