-
-
Notifications
You must be signed in to change notification settings - Fork 70
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
Mixed mode 2D / 1D works upstream but not in MM #79
Comments
@ewoudwijma can you take a look? |
Yeah, will look to it, in a few days. |
Well in my particular use case, the lights are in my kitchen. I've got one
window with a strip around it and above it a semi-circular window with a
matrix in it. I want to keep out of my wife's way and use as few sockets
and as little space as possible. But I could envision a room where you had
several windows, each with a matrix in them and a strip running between
each window.
…On Tue, Oct 10, 2023 at 8:42 AM Ewoud ***@***.***> wrote:
Yeah, will look to it, in a few days.
I never understood the use case for this, why you want a mix of 2D and 1D?
Why not 2 esps, one for the matrix and one for the strip ?
—
Reply to this email directly, view it on GitHub
<#79 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AJTCL7RQPNRSYCJAA2KVT5LX6VUETAVCNFSM6AAAAAA5ZK2VE2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONJVG4YTKNBWGI>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
I could understand that. My personal feeling is that WLED is becoming like Android, supporting more and more use cases, and I see as developer it is becoming more difficult to maintain. I think we should move to an Apple approach, support the 80% of use cases only. Of course this is a personal opinion and it is debatable what belongs to the 80% 🙂 I am quite busy and I cannot realize my earlier comment to look into it in a few days. But have it on my list , need to find time to setup a matrix and a strip configuration. if somebody could do a code compare if this part of functionality that would help |
I have never mentioned that before because there is a workaround we used for a long time which is just to setup the strip as another matrix , not optimal but works if the 2nd esp is not an option but scottrbailey has ton of them . |
Wouldn't it make sense to have 1D/2D configuration be per-segment not globally? |
In principle, your right. Upstream has this whacky "mixed mode" that basicially treats LEDs "after" the matrix as a strip. Well that's also more a workaround than a solution. The original idea was that "1D" is included into 2D, as a matrix Nx1 is 1D. You can set any segment to mapping mode "pixels", which treats them like 1D (not exactly, because serpentine is still applied). |
Actually there is one technical problem with a mixed "matrix plus strip" in MM, for example you create a "72 x 1" next to a " 20x16". Due to a very unfortunate design decision (upstream) called "gap maps", wled creates a huge virtual fixture (buffer) from the combined layout, which is "92 x 16" pixels big. This makes internal handling very slow. My own workaround is to define an arbitrary matrix from the strip, say 9x8 = 72. Then use this "pseudo matrix" in mapping mode "pixels". The total buffer needed is only 29x16 pixels, instead of 96x16. So it's faster and uses less RAM. With the bonus that you can also run 2D effects on the pseudo matrix, which sometimes looks very cool (like a flat GEQ where all bands are next to each other in a line, or a "flat octopus"). |
@Finndersen What exact build of MM you are using to test because when i tested latest nightly MM-S from https://wled-install.github.io/ still mixed 2d-1d mode is not working , might be take a short video /gif showing steps and end result . @scottrbailey Might be you could also retest again |
@softhack007 so it does that even when the extra strip is properly recognised as 1D? Also I couldn't get your method to work. I've got a 13x7 matrix, and tried configuring an extra 9x2 pseudo-matrix after it. This is screenshot of the config before I pressed save, you can see it's put it below the original one: However if I press save/tick, or do anything else, it automatically resets to this: So the new matrix becomes inside/overlayed on the original one. I can't get it to be configured "after" the first matrix, nothing I do makes the LEDs in the strip after the matrix come on at all. Everything here seems really unstable and buggy, like if you set any config values they just automatically get reset or changed when saving or doing anything else |
@softhack007 @dosipod any ideas/updates on this issue? :( |
@Finndersen Might be it will be fixed in the feature as this would also mess-up with using the esp onboard led for status led if you are using 2D setup . Does not seem to be a priority though so I personally no longer use mixed setup on MM |
What does it do with the status led? I've got mixed setup working, but only with 1 strip after the 2D, can't make it with with more |
As pics are not clear , once you able to do a video like the one here #79 (comment) we can compare , otherwise i am not really clear on how to test that as it is still does not work for me on latest nightly build , might be visit discord and report that , status led would also be mixing 2d and 1d but that is something i could overcome in code |
@dosipod do what you did in your video, then reboot WLED, as per my comment:
|
@Finndersen you need to define the matrix in 2d settings first than you can make more segments from the 1d strip and i general more 1d strips after or before 2d matrix .. how much i can se from your case you have one strip of 144 and and matrix of 13x7 so this is how it work or how @softhack007 explained Then i define two matrixes first for the strip then for the 13x7 in 2D settings and at the end you make the segments at the end if you need more segments from the strip you can make more 2d segments but they need to be power of 12 in this case because that is how i define the first panel in 2d settings ... |
@spiro-c thanks I will try that, I think previously I didn't do the LED panel layout config, just tried to make segments and that didn't work. Can the LED panel layout config vary between presets? As in, is it included in the preset config data? |
No but you can define multiple panels from one strip with correct offset but try to make the matrix maximum dimensions as small is possible if you like better performance |
What happened?
In AC you can do mixed 2D/1D configurations by adding a new segment beyond the bounds of your 2D matrix. With MM, when you add a new segment and set the start X beyond the last pixel of your matrix, the UI correctly switches to 1D segment. However, once saved, it reverts back to 2D.
To Reproduce Bug
Expected Behavior
Segment beyond 2d bounds would remain 1d.
Install Method
From srg74 firmware repository
What version/release of MM WLED?
WLEDMM_0.14.0-b27.31_universal_shield_esp32_4MB_M
Which microcontroller/board are you seeing the problem on?
ESP32
Relevant log/trace output
No response
Anything else?
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: