Page 1 of 4

SK6812 LED

Posted: Tue Mar 26, 2024 9:29 am
by ChrisT66
Hello, in Flowcode there is the RGBW SK6812 LED. Will there also be an RGB SK6812 variant?
Or can I also use it to control an LED (without a white LED)?

Thanks, regards Christian

Re: SK6812 LED

Posted: Tue Apr 02, 2024 3:50 pm
by ChrisT66
Suddenly I have a new additional problem: as soon as you select the SK6812 you get an error message when compiling, so even without having used any command.... Is there a bug in the program?

Re: SK6812 LED

Posted: Tue Apr 02, 2024 3:57 pm
by chipfryer27
Hi

Which version of FC are you using and what is your target chip?

Regards

Re: SK6812 LED

Posted: Tue Apr 02, 2024 4:02 pm
by ChrisT66
I am using version 9, the target chip is an atmega328PB

Regards

Re: SK6812 LED

Posted: Tue Apr 02, 2024 4:23 pm
by kersing
It helps when you upload the flowchart you’re having issues with because it takes away a lot of guesswork. (Uploads are available in the full editor & preview mode you can open with the button below the text box)

Re: SK6812 LED

Posted: Tue Apr 02, 2024 4:37 pm
by chipfryer27
Hi

I'm sure that you are aware that FC doesn't support the PB variant but in saying that the PB will run code created for the P which FC does support. I'm sure you are also aware of the pin / functionality differences too.

I created a blank chart based on the ATMEGA328P with everything in config as default, then added in the SK6812 component, which has as default connectivity on Port C.5 and added a macro to initialise. Nothing else just what's mentioned.

This compiled successfully to C, and although throwing up a couple of warnings successfully compiled to Hex too. I can't try it with hardware though.

Is your library up to date?

Regards

Re: SK6812 LED

Posted: Tue Apr 02, 2024 6:45 pm
by ChrisT66
Yes, I know the differences to the P.
That's funny, until a few days ago it worked for me without an error message. I only started having these problems today.
I'll see if there could be another cause of the error.

Thanks for the help!

Best regards Christian

Re: SK6812 LED

Posted: Wed Apr 03, 2024 7:52 am
by ChrisT66
Even if I create a new project and only select the SK6812 without any code, the error occurs when compiling.

In file included from C:\Users\Admin\Desktop\Flowprojekte\Testen.c:47:0:
C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\ESP\ESP_CAL_RMT.c:112:19: error: conflicting types for 'FC_CAL_RMT_TX_1'
CALFUNCTION(void, FC_CAL_RMT_TX_, (void))

What could be the problem?

Greetings Christian

Re: SK6812 LED

Posted: Wed Apr 03, 2024 8:22 am
by chipfryer27
Hi

As per Kersing's previous reply, you will need to attach your chart.

Regards

Re: SK6812 LED

Posted: Wed Apr 03, 2024 8:37 am
by mnfisher
This is an issue with ESP32 and later versions of the RMT interface.

See the post at viewtopic.php?p=14339#p14339

For a working version - the RMT interface and to have changed dramatically...

Martin