Introduction
This library prints letters and numbers onto 5x8 matrix in sequential order.
With an Approx. 300 ms delay between each letter.
Requirements
- Texas Instruments SN74LS145 BCD-To-Decimal Decoder
- Texas Instruments SN7404N Inverter
- Resistor Arrays for LED's
Process
- Make sure outputs 0 to 7 from SN74LS145 are wired to SN7404N then into resistor array then into 5x8 matrix.
- We do this because we want only low outputs from the SN74LS145 IC.
- In order words we want to light up only the LED's we need
- Outputs 0 to 7 from SN74LS145 controls the rows of the 5x8
- Wire the column control pins into resistor array then into your Raspberry Pi 2
- Column controls do not need inversion because it's easy to control using the Pi.
- Initialize object using
led = pixelprint.LEDMatrixControl()
- Print using
led.matrixPrint("YOUR TEXT HERE")
--
Pixel-Print Pin Numbers
LiteON 5x8 | Raspberry GPIO |
---|---|
Row 1 | Pin 5 |
Row 2 | Pin 6 |
Row 3 | Pin 13 |
Row 4 | Pin 19 |
Row 5 | Pin 26 |
Column 1 | Pin 21 |
Column 2 | Pin 10 |
Column 3 | Pin 16 |
Column 4 | Pin 12 |
IC Datasheets
- SN74LS145 > http://www.ti.com/lit/ds/symlink/sn54ls145.pdf
- SN7404N > http://www.ti.com/lit/ds/symlink/sn74ls04.pdf
LICENSE MIT. See LICENSE file for full details.