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
- Original code by @mcauser
License
Licensed under the MIT License, found in LICENSE.txt
.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for micropython-max7219-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4a5b1f41664d660a76f6fc8bb94b6ea97ffc253b01abd4c4c5a016e42a173aaf |
|
MD5 | 94bcb3a239c4b8c6051d308a172b66ea |
|
BLAKE2b-256 | 5594ace0c408a7ff5b927cdf9337016e4ff8ab15aa3738eeeba42e68d8964ed2 |
Close
Hashes for micropython_max7219-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d13987df67599c8657ba41ce60de5736534cf0c93a06feea02c2ae42ea2f2c4d |
|
MD5 | 982193c417f303926c53d7c72c99e85d |
|
BLAKE2b-256 | 9511ef4780c60cb355f14488b1c918679b37d02cd60d82f055a6e0a5145be985 |