Welcome to Adafruit MAX7219’s documentation!

Contents:

Matrices

class max7219.Matrix8x8(spi, cs)

Driver for a single MAX7219-based LED matrix.

brightness(value)

Set the brightness.

fill(color)

Fill the whole matrix with a specified color.

pixel(x, y, color=None)

Get or set the color of a single pixel.

show()

Update the display.

Examples

For software SPI on ESP8266:

import max7219
from machine import Pin, SPI
spi = SPI(-1, 10000000, miso=Pin(12), mosi=Pin(13), sck=Pin(14))
display = max7219.Matrix8x8(spi, Pin(2))
display.fill(True)
display.pixel(4, 4, False)
display.show()

Indices and tables