Skip to main content

A MicroPython library for the Max7219 8x8 LED matrix driver

Project description

MicroPython Max7219 8x8 LED Matrix

A MicroPython library for the MAX7219 8x8 LED matrix driver using the SPI interface.Supports cascading matrices extending the framebuf class.

Examples

Raspberry Pi Pico

Pico max7219
40 (VBUS) VCC 5V
38 (GND) GND
5 (GP3) DIN
7 (GP5) CS
4 (GP2) CLK
from machine import Pin, SPI
from max7219 import Matrix8x8

spi = SPI(0, baudrate=10000000, polarity=1, phase=0, sck=Pin(2), mosi=Pin(3))
ss = Pin(5, Pin.OUT)

display = Matrix8x8(spi, ss, 4)

display.brightness(5)

display.fill(0)
display.show()

display.text("CODE")
display.show()

Attribution

License

Licensed under the MIT License, found in LICENSE.txt.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

micropython-max7219-0.1.0.tar.gz (3.0 kB view hashes)

Uploaded Source

Built Distribution

micropython_max7219-0.1.0-py3-none-any.whl (3.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page