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

max7219-driver-0.0.2.tar.gz (3.8 kB view hashes)

Uploaded Source

Built Distribution

max7219_driver-0.0.2-py3-none-any.whl (4.0 kB view hashes)

Uploaded Python 3

Supported by

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