Comments (7)
Nothing?
from rpi-rgb-led-matrix.
What is exactly the problem, can you elaborate ?
Do you have some code-examples that you tried but failed to work ?
from rpi-rgb-led-matrix.
Your image Demo program in the library. led-image-viewer.cc it cannot handle 6 matrices in a 96x64 formation (Whether Z or C wiring).. That code uses the "Frame Canvas" from the library, so the same changes made to LargeSquare64x64Canvas won't work. I tweaked LargeSquare64x64Canvas to LargeSquare96x64Canvas and LargeSquare128x96Canvas and the programs that use those work, because they don't use the 'Frame Canvas" function. What I need to know is how to modify the Frame Canvas code to do the same so I can do large scale images like I can do large scale on the demo functions.
from rpi-rgb-led-matrix.
Ah. Just wrap a FrameCanvas with your implementation of a LargeScale canvas. The FrameCanvas just implements a Canvas in itself, and your LargeScale canvas that does the pixel-mapping can use that as a backend.
You can just allocate your LargeScale canvas on the stack in the PreprocessedFrame constructor while filling in the FrameCanvas (later on, only these already mapped and preprocessed frames are sent to the output, which means there is no overhead in the mapping). Of course, you need to make sure to not delete the delegatee canvas in the destructor otherwise bad things will happen :)
from rpi-rgb-led-matrix.
I have a feeling I'm gonna have a headache after this. ;-)
from rpi-rgb-led-matrix.
In the meantime, there is now the concept of a 'Canvas Transformer'
https://github.com/hzeller/rpi-rgb-led-matrix/blob/master/include/canvas.h#L51
An implementation can handle all the transformations needed for such pixel mapping. Then you can use this as a wrapper to manipulate other canvases. It is not perfect, but it simplifies the task.
For implementations, have a look at
https://github.com/hzeller/rpi-rgb-led-matrix/blob/master/lib/transformer.cc
from rpi-rgb-led-matrix.
(closing for now, not much activity here. Let me know if you need more)
from rpi-rgb-led-matrix.
Related Issues (20)
- Working on Pi3, gibberish on Pi4 HOT 8
- Led-image-viewer wont open any image format HOT 2
- File write/create issue (errno 13) after setting matrix option with python HOT 1
- Demo D0 not working on pi4 HOT 4
- The left led copies the right end on panel 104x52 HOT 13
- Can't use other devices in parallel HOT 1
- How would i set this up with a cron schedule? HOT 6
- Advanced Nodejs Canvas based RGBmatrix implementation now in the works !!
- random pixels at 2 of the 3 matrix
- Can't Change to 64w x 32h
- dtparam=audio=off is not working HOT 1
- HUB320 support HOT 2
- Python Runtext.py looping infinitely
- Language for Clock change
- install in mambaforge HOT 1
- DietPi recommendation doesn't seem to work
- Halo around images - Python Binding image-viewer
- Issue with Displaying Pixel Propperly HOT 12
- [Q&A] High priority thread restricted by low priority thread?
- I don't like gpio_slowdown HOT 7
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.