Skip to content
LED Matrix

MAX7219 8x8 LED Dot Matrix Display

Cascadable LED matrix driver for scrolling text and animations.

This module pairs the same MAX7219 driver chip used on the 8-digit 7-segment display with an 8x8 single-color LED matrix instead of digits. The wiring and 3-wire serial protocol (DIN, CLK, CS/LOAD) are identical to the 7-segment version — the only difference is how you interpret the bytes you send, since each byte now maps to one row of 8 pixels rather than one digit's segments.

Modules cascade the same way, DOUT into the next module's DIN, which makes them the standard building block for scrolling text signs, VU meters, and simple pixel animations spanning multiple panels. For anything beyond lighting a static pattern — scrolling text in particular — reach for the MD_MAX72XX library rather than the simpler LedControl, since it has font rendering and scroll-buffer logic built in that LedControl lacks.

Specifications

Matrix size8 x 8 pixels, single color per module
Driver chipMAX7219 (also used on the matching 7-segment module)
Operating voltage4V - 5.5V DC (5V typical)
Interface3-wire serial (DIN, CLK, CS/LOAD) — SPI-like but not true SPI
CascadingChain via DOUT -> next module's DIN to build wider scrolling signs
RefreshHandled internally by the chip — no software multiplexing required

Pinout

PinNameDescription
1VCCPower, 5V DC
2GNDGround
3DINSerial data in — connect to MCU MOSI-equivalent pin, or previous module's DOUT when cascading
4CSChip select / LOAD — latches data on the rising edge; shared across all cascaded modules
5CLKSerial clock — shared across all cascaded modules
6DOUTSerial data out — connect to the next module's DIN when chaining multiple matrices

This module shares its pinout and protocol with the MAX7219 7-segment display — the hardware wiring is identical, only your data interpretation differs in code. Use MD_MAX72XX rather than LedControl if you plan to scroll text, since it includes font and scroll-buffer support that LedControl does not.

Variants

The 4-in-1 strip is worth the small premium over buying four separate modules if the end goal is a scrolling text sign — it comes pre-wired for cascading, which removes the most common source of wiring mistakes when chaining individual modules by hand.

VariantTemp rangeHum rangeAccuracyProtocolPrice
MAX7219 8x8 Matrix (red)~$2-4
MAX7219 8x8 Matrix (other colors)~$2-5
4-in-1 MAX7219 Matrix strip~$5-9

Board Integration

Library

LedControlby Eberhard Fahle

Library Manager → search "LedControl" → install "LedControl by Eberhard Fahle"

Wiring

Component pinBoard pinNote
VCC5V
GNDGND
DIND11Software SPI in this library — any digital pin, D11 matches hardware MOSI by convention
CSD10
CLKD13Matches hardware SCK by convention

Code

C++

Notes

For multiple cascaded modules, raise the last constructor argument and address each with the same 0-based device index used in setRow/setLed.