Contents:
max7219.
Matrix8x8
Driver for a single MAX7219-based LED matrix.
brightness
Set the brightness.
fill
Fill the whole matrix with a specified color.
pixel
Get or set the color of a single pixel.
show
Update the display.
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()