This Package contains the code required to drive a max7219 8x8 LED matrix using a Raspberry Pi (with spidev).
Project description
For more information, see the GitHub Repository.
MAX7219 Sample Drive
This repository contains the code required to drive a max7219 8x8 LED matrix using a Raspberry Pi (with spidev
). The code written is extremely rigid and should not be used in any form of production applications.
Connections
The following are the table lists the connetion
LED | Physical Pin (Raspberry Pi) |
---|---|
DIN | 19 |
CLK | 23 |
CS | 24 |
Driving the led matrix
You can either modiy the test.py
file, or paste the max7219
folder into your project directory.
The following are the methods available.
bootstrap()
- Initialize the matrix to display fonts.CLEAR_DISPLAY()
- Clears the entire display.setBitmap(bitMap)
- Display the providedbitMap
. (Can be used to display special characters or symbols)show(string, delay = 0)
- Display the given string with a word delay of thedelay
.close()
- Closes thespi
connection
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
File details
Details for the file max7219LEDMATRIX-0.0.2.tar.gz
.
File metadata
- Download URL: max7219LEDMATRIX-0.0.2.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5d6bee582ebf5f4e0c67e0a728bfd6aaf97a4361e03020ef5fa377246b688455 |
|
MD5 | af428a1b644ca16381df0f29527bc223 |
|
BLAKE2b-256 | c1e53be3cc5d2d0f3f3af403ca54fc742285b7c301ec24e1d4014912d8aac5b8 |
File details
Details for the file max7219LEDMATRIX-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: max7219LEDMATRIX-0.0.2-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5a3aad2b179a9a16dee91c11c5e48f66f067f6528cf1ceb4ebbecfde971197ea |
|
MD5 | 698b9987d6df1c2a9bb5ce1af7f4f134 |
|
BLAKE2b-256 | fc4752e76402108d147883a7e25c2f6f3c0e3a5e75d1c9b812f3504d3700cac5 |