[FrontPage] [TitleIndex] [WordIndex

Serial 8x8 LED Matrix Modules

(Partially SPI compatible1 2 3)

Original Version (c2014)

P1000087rcs.JPG

P1000089rcs.JPG

P1000088cs.JPG

TriPadSPI2SrlAdptr_01s.png

P1000119rcs.JPG

'C' Demonstration Program

(Part of the i2c_chips package)

pi@raspberrypi:~/i2c_spi_chips-0.0 $ ./src/spi_ledx_demo 
spi_ledx_demo.c Version 0.02 {Exp}, [31/08/2017], (c) F_Trevor_Gowen
                <--| Package i2c_spi_chips_0.0 |-->
Usage spi_ledx_demo  [Options]
Options: -a arg_filename[.arg],
         -cascade d
         {cascade of d matrices (1 <= d <= 128)},
         -8DGT  {8-DiGiT led display},
         -MTX   {8x8 led MaTriX display - default},
         -MTX2  {16x8 dual led MaTriX display},
         -E     {Echo command-line arguments},
         -Q     {Quiet - default},
         -BT    {Brightness Test},
         -CBT   {Cascade Brightness Test^^},
         -CST   {Cascade Self Test^^},
         -CFT1  {Cascade Font Test #1^^},
         -CFT2  {Cascade Font Test #2^^},
         -CFT3  {Cascade Font Test #3^^},
                {^^ default is for three matrices},
         -DPT   {Decimal Point Test},
         -DT1   {Digit Test #1},
         -DT2   {Digit Test #2},
         -DT3   {Digit Test #3},
         -FT1   {Font Test #1},
         -FT2   {Font Test #2},
         -FT3   {Font Test #3},
         -F8x8  {use 8x8 Font - default},
         -F8x5R {use Rotated 8x5 Font (PCD8544 font)},
         -ST    {Self Test the LED matrix},
         -S     {use System call methods - default},
         -V     {Verbose},
         -WCFFT {Wiring pi Cascaded Full Font Test^^},
         -WFFT  {Wiring pi Full Font Test},
         -W     {use Wiring pi spi methods},
         -X     {eXecute demonstration}.

./src/spi_ledx_demo -WFFT -X

P1000146rcs.JPG

P1000147rcs.JPG

./src/spi_ledx_demo -WFFT -X -F8x5R

P1000148rcs.JPG

P1000149rcs.JPG

Cascading Modules

P1000168cs.JPG
NB. Only five pins of the 6-w connectors are in use

P1000171rcs.JPG
./src/spi_ledx_demo -CFT2 -X

P1000173rcs.JPG
./src/spi_ledx_demo -CFT2 -X -F8x5R

Diagnostic mode (ie. w/o the -X option) Examples

pi@raspberrypi:~/i2c_spi_chips-0.0 $ ./src/spi_ledx_demo -ST
spi_ledx_demo.c Version 0.02 {Exp}, [31/08/2017], (c) F_Trevor_Gowen
                <--| Package i2c_spi_chips_0.0 |-->
<spi_ledx_demo.arg>     fopen: No such file or directory
spi_ledx_demo.arg not found
max7219 chip status:
SPI_DEV     /dev/spidev0.1
NOOP        00
DIGIT0      01
DIGIT1      02
DIGIT2      03
DIGIT3      04
DIGIT4      05
DIGIT5      06
DIGIT6      07
DIGIT7      08
DECODEMODE  09
INTENSITY   0a
SCANLIMIT   0b
SHUTDOWN    0c
DISPLAYTEST 0f
NAME        ledx8x8
Using 'C' system call-based methods: ...
printf "\017\001" > /dev/spidev0.1
printf "\017\000" > /dev/spidev0.1
printf "\014\000" > /dev/spidev0.1

pi@raspberrypi:~/i2c_spi_chips-0.0 $ ./src/spi_ledx_demo -ST -W
spi_ledx_demo.c Version 0.02 {Exp}, [31/08/2017], (c) F_Trevor_Gowen
                <--| Package i2c_spi_chips_0.0 |-->
<spi_ledx_demo.arg>     fopen: No such file or directory
spi_ledx_demo.arg not found
max7219 chip status:
SPI_DEV     /dev/spidev0.1
NOOP        00
DIGIT0      01
DIGIT1      02
DIGIT2      03
DIGIT3      04
DIGIT4      05
DIGIT5      06
DIGIT6      07
DIGIT7      08
DECODEMODE  09
INTENSITY   0a
SCANLIMIT   0b
SHUTDOWN    0c
DISPLAYTEST 0f
NAME        ledx8x8
Using wiringPiSPI methods: ...
wP_SPIfd[0] = 3
wP_SPIfd[1] = 4
SPIfd[4] >> 0x0f 0x01
SPIfd[4] >> 0x0f 0x00
SPIfd[4] >> 0x0c 0x00

pi@raspberrypi:~/i2c_spi_chips-0.0 $ ./src/spi_ledx_demo -CST
spi_ledx_demo.c Version 0.02 {Exp}, [31/08/2017], (c) F_Trevor_Gowen
                <--| Package i2c_spi_chips_0.0 |-->
<spi_ledx_demo.arg>     fopen: No such file or directory
spi_ledx_demo.arg not found
max7219 chip status:
SPI_DEV     /dev/spidev0.1
NOOP        00
DIGIT0      01
DIGIT1      02
DIGIT2      03
DIGIT3      04
DIGIT4      05
DIGIT5      06
DIGIT6      07
DIGIT7      08
DECODEMODE  09
INTENSITY   0a
SCANLIMIT   0b
SHUTDOWN    0c
DISPLAYTEST 0f
NAME        ledx8x8
Using 'C' system call-based methods: ...
printf "\\017\001\017\001\017\001" > /dev/spidev0.1
printf "\\017\000\017\000\017\000" > /dev/spidev0.1
printf "\\017\001\000\000\000\000" > /dev/spidev0.1
printf "\\017\000\000\000\000\000" > /dev/spidev0.1
printf "\\000\000\017\001\017\001" > /dev/spidev0.1
printf "\\000\000\017\000\017\000" > /dev/spidev0.1
printf "\\014\000\014\000\014\000" > /dev/spidev0.1

pi@raspberrypi:~/i2c_spi_chips-0.0 $ ./src/spi_ledx_demo -CST -W
spi_ledx_demo.c Version 0.02 {Exp}, [31/08/2017], (c) F_Trevor_Gowen
                <--| Package i2c_spi_chips_0.0 |-->
<spi_ledx_demo.arg>     fopen: No such file or directory
spi_ledx_demo.arg not found
max7219 chip status:
SPI_DEV     /dev/spidev0.1
NOOP        00
DIGIT0      01
DIGIT1      02
DIGIT2      03
DIGIT3      04
DIGIT4      05
DIGIT5      06
DIGIT6      07
DIGIT7      08
DECODEMODE  09
INTENSITY   0a
SCANLIMIT   0b
SHUTDOWN    0c
DISPLAYTEST 0f
NAME        ledx8x8
Using wiringPiSPI methods: ...
wP_SPIfd[0] = 3
wP_SPIfd[1] = 4
SPIfd[4] >> 0f.01.0f.01.0f.01.
SPIfd[4] >> 0f.00.0f.00.0f.00.
SPIfd[4] >> 0f.01.00.00.00.00.
SPIfd[4] >> 0f.00.00.00.00.00.
SPIfd[4] >> 00.00.0f.01.0f.01.
SPIfd[4] >> 00.00.0f.00.0f.00.
SPIfd[4] >> 0c.00.0c.00.0c.00.

More Compact, "Clone" (2017)

P1050374rcs.JPG

P1050376rcs.JPG

P1050378cs.JPG

P1050379cs.JPG

P1050380rcs.JPG

P1050383rcs.JPG

Pre-built Dual-matrix Plug-in Module

P1050408cs.JPG

P1050409cs.JPG

P1050412rcs.JPG

P1050413rcs.JPG

P1050414rcs.JPG

Pre-built "Cascade" of 4-Modules

P1050483rcs.JPG

P1050484rcs.JPG

P1050487rcs.JPG

P1050488rcs.JPG

P1050492rcs.JPG

P1050493rcs.JPG


  1. Supplied byHobbyComponents (1)

  2. MAX7219 does not fully honour /CE - treated as just /LD (2)

  3. The Serial 8 Digit LED Display Module uses the same chip (3)


2018-06-16 20:31