https://github.com/vitaris/8x8-matrix-ws2812b
Micropython library for 8x8 WS2812B addressable LED array
https://github.com/vitaris/8x8-matrix-ws2812b
Last synced: about 2 months ago
JSON representation
Micropython library for 8x8 WS2812B addressable LED array
- Host: GitHub
- URL: https://github.com/vitaris/8x8-matrix-ws2812b
- Owner: Vitaris
- License: mit
- Created: 2024-02-10T18:52:38.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-02-11T11:11:26.000Z (about 1 year ago)
- Last Synced: 2025-01-12T10:15:42.663Z (3 months ago)
- Language: Python
- Size: 516 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

# MicroPython 8x8 WS2812B LED Matrix Lib## Overview
This MicroPython repository for Raspberry Pico RP2040 provides a simple and efficient way to control an 8x8 square matrix of WS2812B addressable LEDs. The WS2812B LEDs are individually addressable RGB LEDs, allowing for vibrant and customizable lighting effects.
## Features
- **MicroPython Compatibility:** The code is designed to work seamlessly with MicroPython, making it easy to program and control the LED matrix with MicroPython-enabled microcontrollers.
- **8x8 Matrix:** The repository includes code specifically tailored for an 8x8 LED matrix, providing a convenient interface for addressing each LED in the matrix individually.
- **RP2040 PIO Control:** Harness the precision and efficiency of the RP2040's PIO module to control WS2812B LEDs.
## Demo Script
The demo script included in this repository showcases the basic functionalities of the 8x8 LED matrix lib:
```python
from matrix_8x8 import matrix_8x8
from graphics import *
import utime
import random
print(random.randint(0, 9))if __name__ == "__main__":
matrix = matrix_8x8(28, 5, brightness=0.02)
while True:
matrix.show_number(random.randint(0, 99), color=random.choice(COLORS))
matrix.show_symbol(random.choice(SYMBOLS), offset=1, color=random.choice(COLORS))
matrix.show_symbol(random.choice(SYMBOLS), offset=2, color=random.choice(COLORS))
utime.sleep(1)