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.
Pypi Link
Installation
pip install max7219-driver
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 thespiconnection
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file max7219-driver-0.0.2.tar.gz.
File metadata
- Download URL: max7219-driver-0.0.2.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f62205e36a5e4e865f398903849dbc07830d186ce7660e045ce43354b04288d1
|
|
| MD5 |
28c00020759d5071c40748460f55f1aa
|
|
| BLAKE2b-256 |
2ddcfd1fba5efa74dc88b81cac243127a4f0792e66ec8627c8a9b820d0318acd
|
File details
Details for the file max7219_driver-0.0.2-py3-none-any.whl.
File metadata
- Download URL: max7219_driver-0.0.2-py3-none-any.whl
- Upload date:
- Size: 4.0 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 |
2ee06f21cd41efce4f107a09867d2ccd56e9b85745412eb31407672cd63fdf84
|
|
| MD5 |
2428ce319e0bd32236a00aee7dd3bc79
|
|
| BLAKE2b-256 |
a13a9f20ea9dbfd0ffa88aec6647b6828abe14de3066269be17acae234383f9e
|