Skip to main content

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

PyPi Package 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.

  1. bootstrap() - Initialize the matrix to display fonts.
  2. CLEAR_DISPLAY() - Clears the entire display.
  3. setBitmap(bitMap) - Display the provided bitMap. (Can be used to display special characters or symbols)
  4. show(string, delay = 0) - Display the given string with a word delay of the delay.
  5. close() - Closes the spi connection

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

max7219LED-0.0.1.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

max7219LED-0.0.1-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file max7219LED-0.0.1.tar.gz.

File metadata

  • Download URL: max7219LED-0.0.1.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

Hashes for max7219LED-0.0.1.tar.gz
Algorithm Hash digest
SHA256 e195f38656d48b6b7a1e06bb56742c688e2858c07470d693030e27daa35a9586
MD5 5b1c1a3789f84e5cae432fdabd1b425f
BLAKE2b-256 6d2c221a38b85246c36b9a9c5de0953d9d70a3e3ff6d5109688e31f02ba7affa

See more details on using hashes here.

File details

Details for the file max7219LED-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: max7219LED-0.0.1-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

Hashes for max7219LED-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 90f87630753e8cba14692708da705e8cdb09be8096b19daa26b0ad70b3f259be
MD5 83c24b478d683a1a9c97bfef9ac05d97
BLAKE2b-256 7ab0bd53d424c0ec912f8249763992571a9520e3b9e33f7a3240d5dbe50edc07

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page