Comments (7)
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.
(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.
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.
Uh, give me a minute to fix that ...
from rpi-rgb-led-matrix.
Ok, do a pull and try again ...
from rpi-rgb-led-matrix.
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.
Cool.
from rpi-rgb-led-matrix.
Related Issues (20)
- supporting panels of with broken color orders in the middle of a chain. HOT 1
- API question: can one write directly into the framebuffer used for display? HOT 11
- [Q&A] SwapOnVSync can lose order when using multithreading? HOT 2
- [Q&A] Is /dev/mem a security risk? HOT 1
- [Q&A] Dot Correction available at some point? HOT 2
- Error loading font using systemd python service (Bookworm) HOT 11
- Problem turning off audio in /boot.congig.txt - Pi 4 Model B HOT 2
- Example code demo D3 not working properly HOT 2
- 64 x 64 LED matrix HOT 4
- Panel P3 64x64 IC SM16208 SM5166 with matrix bonnet HOT 4
- Error with fornt when running venv code as root user -- Similar to #1682 HOT 10
- Flickering at regular intervals HOT 18
- really silly question for noob :( HOT 1
- i am using P10-3535-32x16-4s(AHH) . i have some problem or issue with module. HOT 1
- Need help with audio modules HOT 3
- c# HOT 2
- RPI5 support HOT 1
- Alternating between Images and GIFS - glitching at regular intervals
- 64x64 panel, every pair of lines are blank HOT 2
- ArchLinux arm working, but message at startup HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rpi-rgb-led-matrix.