MD_MAX72xx LED Matrix Arduino Library
3.0
Library to control connected MAX72XX devices as a pixel array
|
The modules are connected through a 4-wire serial interface (SPI), and devices are cascaded, with communications passed through the first device in the chain to all others. The Arduino should be connected to the IN side of the first module in the chain.
The Arduino interface is implemented with either
The AVR hardware SPI interface is fast but fixed to predetermined output pins. The more general software interface uses the Arduino shiftOut() library function, making it slower but allows the use of arbitrary digital pins to send the data to the device. Which mode is enabled depends on the class constructor used.
The Arduino interface is implemented with 3 digital outputs that are passed through to the class constructor. The digital outputs define the SPI interface as follows:
The LD signal is used to select the entire device chain. This allows separate LD outputs to control multiple displays sharing the same DIN and CLK signals. The software needs to instantiate a separate object for each display.
The remaining interface pins are for +5V and GND. The power supply must be able to supply enough current for the number of connected modules.