Created: 22.01.2016 01:27 Last Modified: 06.03.2017 03:12
Views: 13296
Keywords: C, example, LED, LED matrix, Linux, opensource, Python, Raspberry Pi, Raspian, SPI
Getting started with Red LED Matrix Module for Raspberry Pi
Introduction
This is an add-on board with LED red matrix for Raspberry Pi from icstation. By the time of writing this post it costs less that 10 USD including shipping. It is based on MAX7219 driver and has two cubes with 64 red common cathode LEDs on each of them. The matrix is 16 dots wide and 8 dots high. It is compatible with any Raspberry Pi model and version.
cd ~
git clone https://github.com/leon-anavi/raspberrypi-matrix-led-max7219.git
Python
In order to you my Python example for the LED red matrix for Raspberry Pi you need to install several additional packages on your Raspberry Pi. Execute the following commands if you are using Raspbian:
wget http://www.airspayce.com/mikem/bcm2835/bcm2835-1.49.tar.gz
tar xf bcm2835-1.49.tar.gz
cd bcm2835-1.49
./configure
make
sudo make check
sudo make install
Build the example application
cd ~/raspberrypi-matrix-led-max7219/c
make
Run the example application to print text on the red LCD matrix for Raspberry Pi: