Coder Social home page Coder Social logo

Comments (7)

hzeller avatar hzeller commented on August 17, 2024

If you are using the Adafruit HAT, then you actually need to give -DADAFRUIT_RGBMATRIX_HAT

Have a look in lib/Makefile, there are the options to switch on/off.

from rpi-rgb-led-matrix.

hzeller avatar hzeller commented on August 17, 2024

(and let me know if it works, because I don't have a Adafruit HAT to test, so I just implemented that pin-mapping looking at their description)

from rpi-rgb-led-matrix.

magdesign avatar magdesign commented on August 17, 2024

Thanks for your help.
I uncommented the option and tried to compile, but there is an error, here is what I get:

g++ -Iinclude -Wall -O3 -g -c -o demo-main.o demo-main.cc
make -C lib
make[1]: Entering directory '/home/pi/rpi-rgb-led-matrix/lib'
g++ -I../include -Wall -O3 -g -fPIC -DADAFRUIT_RGBMATRIX_HAT -c -o gpio.o gpio.cc
g++ -I../include -Wall -O3 -g -fPIC -DADAFRUIT_RGBMATRIX_HAT -c -o led-matrix.o led-matrix.cc
g++ -I../include -Wall -O3 -g -fPIC -DADAFRUIT_RGBMATRIX_HAT -c -o framebuffer.o framebuffer.cc
framebuffer.cc: In constructor ‘rgb_matrix::internal::Framebuffer::Framebuffer(int, int, int)’:
framebuffer.cc:49:1: error: uninitialized member ‘rgb_matrix::internal::Framebuffer::parallel_’ with ‘const’ type ‘const int’ [-fpermissive]
framebuffer.cc: In static member function ‘static void rgb_matrix::internal::Framebuffer::InitGPIO(rgb_matrix::GPIO_, int)’:
framebuffer.cc:83:10: error: ‘struct rgb_matrix::internal::Framebuffer::IoBits::’ has no member named ‘output_enable_rev1’
framebuffer.cc:83:38: error: ‘struct rgb_matrix::internal::Framebuffer::IoBits::’ has no member named ‘output_enable_rev2’
framebuffer.cc:84:10: error: ‘struct rgb_matrix::internal::Framebuffer::IoBits::’ has no member named ‘clock_rev1’
framebuffer.cc:84:30: error: ‘struct rgb_matrix::internal::Framebuffer::IoBits::’ has no member named ‘clock_rev2’
framebuffer.cc:115:27: error: ‘struct rgb_matrix::internal::Framebuffer::IoBits::’ has no member named ‘output_enable_rev1’
framebuffer.cc:116:31: error: ‘struct rgb_matrix::internal::Framebuffer::IoBits::’ has no member named ‘output_enable_rev2’
framebuffer.cc: In member function ‘void rgb_matrix::internal::Framebuffer::DumpToMatrix(rgb_matrix::GPIO_)’:
framebuffer.cc:324:23: error: ‘struct rgb_matrix::internal::Framebuffer::IoBits::’ has no member named ‘clock_rev1’
framebuffer.cc:324:56: error: ‘struct rgb_matrix::internal::Framebuffer::IoBits::’ has no member named ‘clock_rev2’
framebuffer.cc:333:14: error: ‘struct rgb_matrix::internal::Framebuffer::IoBits::’ has no member named ‘clock_rev1’
framebuffer.cc:333:38: error: ‘struct rgb_matrix::internal::Framebuffer::IoBits::’ has no member named ‘clock_rev2’
Makefile:61: recipe for target 'framebuffer.o' failed
make[1]: *** [framebuffer.o] Error 1
make[1]: Leaving directory '/home/pi/rpi-rgb-led-matrix/lib'
Makefile:23: recipe for target 'lib/librgbmatrix.a' failed
make: *** [lib/librgbmatrix.a] Error 2

from rpi-rgb-led-matrix.

hzeller avatar hzeller commented on August 17, 2024

Uh, give me a minute to fix that ...

from rpi-rgb-led-matrix.

hzeller avatar hzeller commented on August 17, 2024

Ok, do a pull and try again ...

from rpi-rgb-led-matrix.

magdesign avatar magdesign commented on August 17, 2024

Thanks for your hi-speed support!

Compilation works fine and also the ./led-matrix runs smoothly with 4 LED matrix on a HUB75 Adafruit Hat.

I think you can close the issue.

from rpi-rgb-led-matrix.

hzeller avatar hzeller commented on August 17, 2024

Cool.

from rpi-rgb-led-matrix.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.