A basic 8x11 LED display that can be driven by an Arduino or a Raspberry Pi board.
The LED matrix and hardware driver are designed using KiCAD (5.1.6) and the layout is made with perfboards in mind, so the front layer can be used as wires and the back layer for solder traces.
To include and use the display library in sketches made using the Arduino IDE, first the library folder follow the below steps:
- Copy the
LED8x11_display_lib
folder fromLED-display/Software
- To
My Documents\Arduino\libraries
in Windows. - To
~/Documents/Arduino/libraries/
in linux.
- To
For more details refer to the libraries page on the Arduino website.
- Include the library header in the sketch
#include <LED8x11_display_lib.h>
To use the Python display library follow the below steps:
This Python display library requires the
RPi.GPIO
Python library. To setupRPi.GPIO
refer to PyPI/RPi.GPIO.
- Move to the
Software/RaspberryPi/Python/LED8x11_display_lib
directory
cd Software/RaspberryPi/Python/LED8x11_display_lib
- Run the Python setup script
Admin/root privilages may be required to install the library
python3 setup.py install
- Import the library in your program
from led8x11displaylib import display8x11
To use the C++ display library follow the below steps:
This C++ display library requires the
wiringPi
library. To setupwiringPi
refer to the official Wiring Pi site.
- Move to the
Software/RaspberryPi/Cpp/LED8x11_display_lib
directory
cd Software/RaspberryPi/Cpp/LED8x11_display_lib
- Run the make command (this will build the library and all the examples)
make all
- Include the library header in your program using the following line
#include "LED8x11_display_lib.hpp"
- While compilint the program link to both
wiringPi
andled8x11display
g++ myprogram.cpp -o myprogram -L<path/to/Cpp/folder>/build/lib -L/usr/lib -lled8x11display -lwiringPi ...
To reset/clean the C++ objectfile run the following in Software/RaspberryPi/Cpp
:
make clean
The Software and firmware of this project is licensed under the the MIT license however the hardware is under the Open Source Hardware license.
- Firmware driver and APIs for Raspberry Pi.
- Example code (Python and C++)
- Documentation for hardware