-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Vmapper #1009
Vmapper #1009
Conversation
pull upstream
Cool! So to reduce potential user-support in the future, I suggest to not deviate too much from the 'things are fed from the right side', and think about stuff rotated by 90 degrees (it is probably just a little x/y swap fiddle somewhere). To make sure there is no confusion about how to connect each of these panels, can you add an text-art that indicates how they are exactly chained ? I find that the Macron-Character is excellent for this kind of stuff:
(if you still want to operate it from the top in your specific application, you then can use the Rotate transformation to get it back rotated) |
(also, this brings out much more of the |
mmh ok, so the reason why you want to feed it from the top is that then the panels are 'upright' as they are meant to be ? (because sometimes the LED shielding sideways is a little different than up/down). I could be convinced by that. Let's do the ASCII art improvement for now, but since you turn it 90 degrees than in my suggestion, you probably need some sort of 'right side pipe symbol' and 'left side pipe symbol' and backslash to illustrate. |
Just to answer your question, yes, the panels are upright as they were meant to be, check the picture I included at the top. |
Ch1 Ch2 Ch3 | ||
v v v | ||
[I > O] [I > O] [I > O] | ||
,---' ,---' ,---' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, pretty :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so the natural direction of these panels is actually with the input on the right side, so right now they are upside down. So we still have to change that and 180 degree change it.
(I have seen outdoor panels that actually have a strong directional component downwards as they are meant to to be mounted high-up)
(In the case of your set-up that means you have to then Rotate:180
the output if you can't have the Pi at the bottom of the display)
Do you have a picture of the panel backside ? Every panel I have ever seen has the input on the right side (seeing from the face of the panel), not on the left. |
Looking at the three-chained V-example you have above, I don't see arrows but the text is indeed up only if the input is on the right. So looking to the front of the panel, the input is on the right, so we need to make sure to have the code reflect that. |
See, input is on the right of the panel, output on the left |
connector is left when seen from the back, right when seen from the LED (front) side. |
The wiring diagrams in all of the rpi-rgb-led-matrix done are all with the panel fronts looking toward you. |
Sure, PTAL |
lib/pixel-mapper.cc
Outdated
*matrix_x = (x % panel_width) + int(y/panel_height)* panel_width; | ||
*matrix_y = (y % panel_height) + int(x/panel_width) * panel_height; | ||
|
||
//fprintf(stderr, "%s: Panel-W:%d Panel-H:%d. X: %3d -> %3d, Y: %3d -> %3d\n", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't leave commented-out code in the final version.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So, I left it there on purpose it case it helps someone (possibly me) writing the next mapper. Understanding how things worked without it would have been hard (it was non obvious to see how things were mapped)
If you'd prefer, I can put it under an #ifdef 0 or something else, though, but if you really don't want it, I can remove it and apply it again in my tree as I will definitely want it again in the future if I write another mapper.
What's your call?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removing commented-out here. Someone who will want to debug this will add something very similar in the working copy, but here, we should leave out the clutter.
Also above in the GetSizeMapping(), the output should not be there, but you can #if 0
that out if you want.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, PTAL
Cool, almost ready to go: just some leftover debug printf to be removed. |
Thanks for your contribution! Merged. |
Do you have a picture of the back of your panel that you'd like to share ? I think similar to the U-mapper example image, that will help people in the wiring. |
@hzeller I don't have rails, it's sadly all like just sitting on my desk, so I can't really flip it around |
@hzeller Well, I will owe you a new matter soon, Vumapper :) |
You're really going to town with these panels :) |
those old 64x32 panels that were donated to me, were gathering dust, I felt bad about it, and like many I have a few extra hours at home right now :) |
I'm trying to replicate the panels setup but can't seen to find the right set of commands to get a straight image. @marcmerlin care to provide an example? I already haverything wired the same way with 12 64x32 panels. |
@rijotech please try |
Thanks a lot @marcmerlin I already figured out I cloned your repo and figure it how to make it work. Thanks to you both! and stay with this pandemic. |
@marcmerlin is there a way to reverse the sequence of the chains, so I can go right to left, bottom to top in my wiring? |
could you use use the mirror or rotate mappers stacked on the v-mapper ? |
Henner's answer is best, my code was indeed only written for one direction, but hopefully the transforms on top will sort you out |
I've reversed the cable routing instead, all good :) Thank you both for the quick feedback! |
Fixes #1003
Ok, this was more work than I thought for something seemingly simple (well, it's likely just that I suck at it), but it works!

Hopefully this puts me in the lead for the highest usable resolution display on a single rPi (384x256) :)