I have a number of RGB+W SuperStrips that I'm trying to use with xlights and their "RGBW" model. Things work ok except that the order of the super strips is GRBW not RGBW so when I'm sequencing the colors are off from what's shown in the sequencer. I've asked if there's a way to reorder the outputs in xlights but haven't gotten a response. I'm driving the strips with Ren48LSD's that only drive the super strips so what I'm trying to do instead now is reorder the outputs in the Renard PIC code to swap the first two channels so that things work as the sequencer expects them to be but I'm not having much luck so I'm hoping PShort is watching and is willing to chime in 🙂
I've tried modifying the decode block and swapping slot_id_ckt0 and slot_id_ckt1 but that didn't work - in fact it left the green channel on until I went to either blue or white. I also tried reordering things in the init section so that orders would be movf slot_id_ckt0, w followed by movwf crt_ckt1 (and i'm also swapping channels 4 and 5 when doing this since each PIC is driving two super strips) but that didn't work either so I think I'm left with needing to reassign which registers go to which pins (or vice versa) but I can't figure out where that's defined. I'm an old software guy but the amount of optimization PShort's done in this code is making my head hurt when I'm trying to follow it so I'm hoping he or someone else can steer me in the right direction.
Thanks,
-joni-
The ordering of the bits in 'disable_map' (which I've renamed to 'alwayson_map') need to be moved around in addition to re-ordering of the slotid_ckt registers. I'll be uploading a new version of the '688 firmware to the file library both swaps channels 0/1 and 4/5, as well as making it easier to make similar changes in the future. This code will only be tested to the point of making sure that it assembles under MPLABX, as I don't have the proper hardware where I am now. It is based on starrt_address firmware (i.e. for the PIC16F688 only).
Edit - the uploaded file has DC_build set to 0, which you may want to change. The baudrate in that file is set to 38400, and it's set up to use an external clock. You may want to change these settings as well.
It works! Well, at least a quick test with one strip on channels 1-4 works. I'll test another strip on channels 5-8 next. If that works then I'll assume a fully loaded Ren48 will work since it'll just be more PICs plucking off 8 channels at a time.
Here's a quick video showing the super strip outputting colors that match the xlights RGBW model in the timeline.
What a relief this is! Phil, I cannot thank you enough not only for all of the work you've done for the community and Renard firmware in general but especially this one off request, thank you! Just goes to reaffirm what I've said before, thus is a great community of blindly flashy enthusiasts! 🙂
Thanks,
-Joni-
P. Short wrote:The ordering of the bits in 'disable_map' (which I've renamed to 'alwayson_map') need to be moved around in addition to re-ordering of the slotid_ckt registers. I'll be uploading a new version of the '688 firmware to the file library both swaps channels 0/1 and 4/5, as well as making it easier to make similar changes in the future. This code will only be tested to the point of making sure that it assembles under MPLABX, as I don't have the proper hardware where I am now. It is based on starrt_address firmware (i.e. for the PIC16F688 only).Edit - the uploaded file has DC_build set to 0, which you may want to change. The baudrate in that file is set to 38400, and it's set up to use an external clock. You may want to change these settings as well.
It is and it isn't a one-off. While it is coded for the exact situation that you requested, this was done by making changes to the code that will make it easier to exchange I/O pins in the future.
