SK6812 LED

For general Flowcode discussion that does not belong in the other sections.
chipfryer27
Valued Contributor
Posts: 1149
http://meble-kuchenne.info.pl
Joined: Thu Dec 03, 2020 10:57 am
Has thanked: 286 times
Been thanked: 412 times

Re: SK6812 LED

Post by chipfryer27 »

Hi

Hmmmm..... Earlier he said his chip was an ATMEGA328PB. Maybe an oversight in chip selection?

Regards

ChrisT66
Posts: 37
Joined: Mon Dec 07, 2020 12:47 pm
Been thanked: 1 time

Re: SK6812 LED

Post by ChrisT66 »

Ok, thank you Martin. Thought once again it would just work....

Attaching a chart doesn't help much as it's just completely empty. Only the component SK6812 was dragged into the project. Otherwise not a single command.

ChrisT66
Posts: 37
Joined: Mon Dec 07, 2020 12:47 pm
Been thanked: 1 time

Re: SK6812 LED

Post by ChrisT66 »

Yes, the chip is a 328PB, the 329P is selected in Flowcode. Martin included the ESP32 as a code example.

ChrisT66
Posts: 37
Joined: Mon Dec 07, 2020 12:47 pm
Been thanked: 1 time

Re: SK6812 LED

Post by ChrisT66 »

The only strange thing is that a few days ago everything worked without any problems.

mnfisher
Valued Contributor
Posts: 962
Joined: Wed Dec 09, 2020 9:37 pm
Has thanked: 104 times
Been thanked: 511 times

Re: SK6812 LED

Post by mnfisher »

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))

Definitely trying to include the esp code?

If the target is a 328p then there is an issue with the component?

Martin

chipfryer27
Valued Contributor
Posts: 1149
Joined: Thu Dec 03, 2020 10:57 am
Has thanked: 286 times
Been thanked: 412 times

Re: SK6812 LED

Post by chipfryer27 »

Hi Martin

I can compile to Hex without issue if selecting the ATMEGA328P. Without seeing his chart we can only guess...

Regards

ChrisT66
Posts: 37
Joined: Mon Dec 07, 2020 12:47 pm
Been thanked: 1 time

Re: SK6812 LED

Post by ChrisT66 »

Here is the empy chart...
Attachments
SK6812Test.fcfx
(7.79 KiB) Downloaded 5 times

ChrisT66
Posts: 37
Joined: Mon Dec 07, 2020 12:47 pm
Been thanked: 1 time

Re: SK6812 LED

Post by ChrisT66 »

So, I'm one step further. It works again after I restarted the PC and flowcode 1-2 times. Thanks again everyone!

Now I have my old problem again. no matter what values I enter, the led always lights up maximum white.
Attachments
Testsk6812.fcfx
(8.51 KiB) Downloaded 9 times

mnfisher
Valued Contributor
Posts: 962
Joined: Wed Dec 09, 2020 9:37 pm
Has thanked: 104 times
Been thanked: 511 times

Re: SK6812 LED

Post by mnfisher »

You also need to call Refresh after doing the setall - to upload the data to the leds

ChrisT66
Posts: 37
Joined: Mon Dec 07, 2020 12:47 pm
Been thanked: 1 time

Re: SK6812 LED

Post by ChrisT66 »

Unfortunately, it makes no difference whether with or without refresh. Just the initialization command is enough and it lights up white.

Post Reply