-
Notifications
You must be signed in to change notification settings - Fork 302
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
BRG color order issue when controlling a LED strip with DDP (ledFX) ? #1491
Comments
Your command looks okay, it's strange that it's not working. I will need to check that in OBK simulator. From a brief glance, it seems that SM16703P_setMultiplePixel should respect the chosen colour order. |
Thank you - The code responsible to send the DDP data is https://github.com/LedFx/LedFx/blob/main/ledfx/devices/ddp.py Is there a way to dump the incoming data ? This way I could confirm that the problem is not on the side of the. sender |
You can manually download DDP-Dump branch here: |
You seem to know coding., I pushed self test for setPixels function. It seems to respect colour order: |
thank you - i uploaded your rom with the debug statement and i it shows that the RGB order is correct in the DDP data - still its shown in the wrong colors on the rgb strip
could it be that
and end up with
instead ? if SM16703P_setMultiplePixel has the correct behaviour and regcognizes the the RGB order its not using it or the DDP packet parsing doesnt return the correct data i dug a bit deeper into the DDP format and it looks ok .... http://www.3waylabs.com/ddp/#Design%20Philosophy 410301010000000000180000FF0000FF0000FF0000FF0000FF0000FF0000FF0000FF
|
this is my autoexec.bat
|
I think it should enter SM16703P_setMultiplePixel, but if you are not sure, maybe add a print statement there to check? |
i don't understand sorry - SM16703P_setMultiplePixel - this is not registered as a command right? -is there an easy way i can create debug builds similar to the one you send me initially ? |
anyone can make debug builds easily, you should check out our forum https://www.elektroda.com/rtvforum/topic4033833.html |
also this guide: https://www.elektroda.com/rtvforum/topic4056286.html you can make your own pr/fork and use online builds to get binaries |
I successfully implemented a custom firmware fix that resolves the issue where LEDFX sends a DDP stream to OpenBK while recognizing a custom color order ( BRG) set via the SM16703P_Init function. Key Changes: While I'm not an expert in C development, I believe that this optimization reduces complexity without introducing a significant performance hit. |
thanks for merging! |
there seems to be a build issue for the simulator build - https://github.com/openshwprojects/OpenBK7231T_App/actions/runs/12903516445/job/35978928965 - D:\a\OpenBK7231T_App\OpenBK7231T_App\src\driver\drv_sm16703P.c(78,6): error C2371: 'SM16703P_setPixel': redefinition; different basic types [D:\a\OpenBK7231T_App\OpenBK7231T_App\openBeken_win32_mvsc2017.vcxproj] i dont understand this error message - maybe you want to revert the PR in the meantime |
Hello - I managed to flash my cheap tuya wifi led strip controller (CBU) with openbk. I am very happy!
After some trial and error I fixed the wrong color output with SM16703P_Init 160 BRG
I was wondering if there is a way to change the DDP color order as well ? Right now i am getting the same color problems i had before i added BRG to the init command.
the relevant part in ddp parse is calling SM16703P_InitForLEDCount with rgb values
OpenBK7231T_App/src/driver/drv_ddp.c
Line 135 in 0efec12
the led strip driver recognises the color order if i directly use it with the build-in gui and also homeassistant
OpenBK7231T_App/src/driver/drv_sm16703P.c
Line 55 in 0efec12
My complete init command
I dont know how multiple drivers work together but the code looks ok for me - is there an issue with the my init command?
The text was updated successfully, but these errors were encountered: