$ mkdir display16x32 $ cd display16x32
We now need to fetch the code from Henner Zeller's original project using the command:
$ git clone https://github.com/hzeller/rpi-rgb-led-matrix/
This code is C source code, so we need to compile it before we can run it. It also requires a small change for the wiring layout we're using. Enter the following commands:
$ cd rpi-rgb-led-matrix/lib $ nano Makefile
(Or substitute your editor of preference.)
Enable this line in the Makefile (it’s commented out by default):
DEFINES+=-DRGB_CLASSIC_PINOUT
Save the changes to the file, then exit the editor and type...
$ cd .. $ make
$ sudo ./led-matrix
$ sudo ./led-matrix 1 runtext.ppm