Skip to content
This repository has been archived by the owner on Jun 13, 2020. It is now read-only.

Commit

Permalink
Add rpi-rgb-led-matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
mp911de committed Nov 13, 2014
1 parent 7a0bef2 commit ac37c9c
Show file tree
Hide file tree
Showing 46 changed files with 1,096,127 additions and 0 deletions.
339 changes: 339 additions & 0 deletions rpi-rgb-led-matrix/COPYING

Large diffs are not rendered by default.

28 changes: 28 additions & 0 deletions rpi-rgb-led-matrix/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
CXXFLAGS=-Wall -O3 -g
BINARIES=led-matrix text-example

# Where our library resides. It is split between includes and the binary
# library in lib
RGB_INCDIR=include
RGB_LIBDIR=lib
RGB_LIBRARY_NAME=rgbmatrix
RGB_LIBRARY=$(RGB_LIBDIR)/lib$(RGB_LIBRARY_NAME).a
LDFLAGS+=-L$(RGB_LIBDIR) -l$(RGB_LIBRARY_NAME) -lrt -lm -lpthread

all : $(BINARIES)

$(RGB_LIBRARY):
$(MAKE) -C $(RGB_LIBDIR)

led-matrix : matrix-main.o $(RGB_LIBRARY)
$(CXX) $(CXXFLAGS) matrix-main.o -o $@ $(LDFLAGS)

text-example : text-example.o $(RGB_LIBRARY)
$(CXX) $(CXXFLAGS) text-example.o -o $@ $(LDFLAGS)

%.o : %.cc
$(CXX) -I$(RGB_INCDIR) $(CXXFLAGS) -c -o $@ $<

clean:
rm -f $(OBJECTS) $(BINARIES)
$(MAKE) -C lib clean
365 changes: 365 additions & 0 deletions rpi-rgb-led-matrix/README.md

Large diffs are not rendered by default.

Loading

0 comments on commit ac37c9c

Please sign in to comment.