This MicroPython LED Matrix library is designed for any hardware platform that supports MicroPython such as Raspberry Pi Pico, ESP32, Micro:bit... to work with the Max7219 LED Matrix. It is created by DIYables to work with DIYables LED Matrix, but also work with other brand LED Matrix. Please consider purchasing LED Matrix 8x8 and LED Matrix 32x8 from DIYables to support our work.
- Supports ASCII characters, including the degree (°) symbol
- Allows custom characters (with a provided custom character generator)
- Trims each character to its actual width and adds configurable spacing, unlike other libraries that fix characters to 8-pixel width, for a more compact and flexible display
- Compatible with any MicroPython-supported platform, including Raspberry Pi Pico, ESP32, Micro:bit, and more
- __init__(self,spi, cs, num_matrices=4)
- clear(self)
- show(self)
- set_brightness(self, brightness)
- print_bitmap(self, bitmap, start_col = 0)
- print_char(self, char, start_col = 0)
- print(self, text, spacing=2, col = 0)
- print_custom_char(self, bitmap, col = 0)
main.py
does:
- display text
- display custom characters
- scroll text.py