You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With that code, the WS2812B strip runs correctly, but the WS2811 code swaps the Red and Green. Switching the WS2811 to GRB has no effect.
Putting the WS2811 line before the WS2812B gives opposite results. The WS2811 strip will run correctly, but the WS2812B strip would have Red and Green swapped. Switching the WS2812B to RGB has no effect.
Because you are keeping a single array of clockless controller objects and you're doing a forcible static cast here, it's overriding the RGB_ORDER template parameter - and because CPixelController is not virtual (for optimization reasons) - it's basically throwing away the different RGB ordering for different sets of pixels when using the i2s output.
You're going to need to do some juggling w/virtual methods to make sure that you're getting the correct color ordering for different strips.
// -- Refill the half of the buffer that we just finished,
// allowing the other half to proceed.
ClocklessController * controller = static_cast<ClocklessController*>(gOnChannel[channel]);
controller->fillHalfRMTBuffer();
that static cast is basically throwing away the RGB_ORDER template information.
I think it's ok in the RMT controller because the fill method is virtual.
The I2S controller already has the limitation that all strips must be
identical.
I'm more on the noob side of things, so if the answer has been posted in your language, just let me know in my language so I can begin to attempt to translate.
@focalintent
Huh. It looks like I did not make those methods virtual, which probably explains why it doesn't work.
I believe the solution is to make fillHalfRMTBuffer and startOnChannel virtual methods. That was my intent, but somehow it didn't make it in there.
I wouldn't trust old me; it's definitely not working right now. I stopped using ESP32 for some reason, but I don't remember what. But I really wanna switch over to the 32s now. I am available to help in anyway. Donations or whatever.
Also, my first 2 pixels on every strip are wrong color order; swapped with RGB and GRB cause blue is correct for everything.
@jordanadania Yeah, it's a totally different method of sending the bits. The short version is that the ESP32 driver is called by a periodic interrupt, so we need to pass the color order information through that interrupt interface, which is hard because it's a template parameter, not a runtime value.
I think it's ok in the RMT controller because the fill method is virtual. The I2S controller already has the limitation that all strips must be identical.
I think I ran into a similar issue. I have multiple strips, all WS2815. 3 of them are GRB and work perfect. The 2 strips that are RGB and despite being set as RGB they have the red and green switched.
This is due to clockless. Its why i use nothing but 8266sSent from my T-Mobile 4G LTE Device
-------- Original message --------From: BradMcc522 <[email protected]> Date: 8/11/20 1:46 AM (GMT-05:00) To: FastLED/FastLED <[email protected]> Cc: Jordan Adania <[email protected]>, Mention <[email protected]> Subject: Re: [FastLED/FastLED] ESP32 Color Order (#827)
I think I ran into a similar issue. I have multiple strips, all WS2815. 3 of them are GRB and work perfect. The 2 strips that are RGB and despite being set as RGB they have the red and green switched.
—You are receiving this because you were mentioned.Reply to this email directly, view it on GitHub, or unsubscribe.
I have been watching this issue for a while as I have a project that has two strips connected, one using BGR and another RGB on an ESP32 (arduino)
The second strip was not working well for our project so we disabled it as it was for debugging mostly anyway.
We additionally observed that the first two pixels on the second strip were also the wrong colour.
I have just retested using fastled 3.4 and can't reproduce the issue anymore, both strips are working with their correct colour spaces.
Thanks for saving me the trouble.Sent from my T-Mobile 4G LTE Device
-------- Original message --------From: Mick ***@***.***> Date: 9/5/21 1:05 AM (GMT-05:00) To: FastLED/FastLED ***@***.***> Cc: Jordan Adania ***@***.***>, State change ***@***.***> Subject: Re: [FastLED/FastLED] ESP32 Color Order (#827)
tested today, esp32 on 3.4, not fixed, it is most definitely GRB as someone else commented on.
—You are receiving this because you modified the open/close state.Reply to this email directly, view it on GitHub, or unsubscribe.Triage notifications on the go with GitHub Mobile for iOS or Android.
Activity
focalintent commentedon Jun 26, 2019
@samguyer I can see the problem - it's this line:
https://github.com/FastLED/FastLED/blob/master/platforms/esp/32/clockless_i2s_esp32.h#L628
Because you are keeping a single array of clockless controller objects and you're doing a forcible static cast here, it's overriding the RGB_ORDER template parameter - and because CPixelController is not virtual (for optimization reasons) - it's basically throwing away the different RGB ordering for different sets of pixels when using the i2s output.
You're going to need to do some juggling w/virtual methods to make sure that you're getting the correct color ordering for different strips.
Similarly on the rmt side:
https://github.com/FastLED/FastLED/blob/master/platforms/esp/32/clockless_rmt_esp32.h#L484
that static cast is basically throwing away the RGB_ORDER template information.
samguyer commentedon Jun 26, 2019
jordanadania commentedon Jun 26, 2019
I'm more on the noob side of things, so if the answer has been posted in your language, just let me know in my language so I can begin to attempt to translate.
focalintent commentedon Jun 26, 2019
The answer is that there’s a bug in FastLED that needs to get fixed :) just a question of time
samguyer commentedon Jun 26, 2019
@focalintent
Huh. It looks like I did not make those methods virtual, which probably explains why it doesn't work.
I believe the solution is to make fillHalfRMTBuffer and startOnChannel virtual methods. That was my intent, but somehow it didn't make it in there.
samguyer commentedon Jun 26, 2019
@focalintent You'll appreciate this: I've got two laptops, side by side, one debugging FastLED and the other debugging saf. :-)
jordanadania commentedon Jul 4, 2019
THANK YOU!!!! You fixed it!!!
jordanadania commentedon May 26, 2020
Apparently, it's not fixed??
samguyer commentedon May 26, 2020
@jordanadania what made you reopen this issue? Was it fixed before and now it's not?
jordanadania commentedon May 26, 2020
I wouldn't trust old me; it's definitely not working right now. I stopped using ESP32 for some reason, but I don't remember what. But I really wanna switch over to the 32s now. I am available to help in anyway. Donations or whatever.
Also, my first 2 pixels on every strip are wrong color order; swapped with RGB and GRB cause blue is correct for everything.
https://github.com/jordanadania/fastled-newFlow
This is the code; it's small. The setup is the only thing relevant anyway.
jordanadania commentedon May 26, 2020
Do you want me to open a brand new ticket?
samguyer commentedon May 26, 2020
Nah, let's just keep this ticket open. When I looked at the code I thought to myself "How could this possibly be fixed?!?!" :-)
samguyer commentedon May 27, 2020
@kriegsman Do you have any thoughts on how to handle this situation? I can explain the problem in more detail if you want.
jordanadania commentedon May 27, 2020
on the 8266, i can set 3 of them to parallel output, and then assign the 4th normally and it works. so, idk if that helps at all.
samguyer commentedon May 27, 2020
@jordanadania Yeah, it's a totally different method of sending the bits. The short version is that the ESP32 driver is called by a periodic interrupt, so we need to pass the color order information through that interrupt interface, which is hard because it's a template parameter, not a runtime value.
jordanadania commentedon Jun 4, 2020
How do I switch to the RMT controller?
BradMcc522 commentedon Aug 11, 2020
I think I ran into a similar issue. I have multiple strips, all WS2815. 3 of them are GRB and work perfect. The 2 strips that are RGB and despite being set as RGB they have the red and green switched.
jordanadania commentedon Aug 11, 2020
agrath commentedon May 6, 2021
I have been watching this issue for a while as I have a project that has two strips connected, one using BGR and another RGB on an ESP32 (arduino)
The second strip was not working well for our project so we disabled it as it was for debugging mostly anyway.
We additionally observed that the first two pixels on the second strip were also the wrong colour.
I have just retested using fastled 3.4 and can't reproduce the issue anymore, both strips are working with their correct colour spaces.
jordanadania commentedon May 6, 2021
Maybe it is time to switch back to esp32!
I will close this until I can recreate the problem.
talkncloud commentedon Sep 5, 2021
tested today, esp32 on 3.4, not fixed, it is most definitely GRB as someone else commented on.
jordanadania commentedon Sep 5, 2021