GLCD Display Manager Overhaul

For general Flowcode discussion that does not belong in the other sections.
BenR
Matrix Staff
Posts: 2093
http://meble-kuchenne.info.pl
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 554 times
Been thanked: 740 times

Re: GLCD Display Manager Overhaul

Post by BenR »

Hello,

I may now have fixed the WS2812B component, it seems to be compiling and outputting signals so that's promising.

I haven't confirmed with the LEDs just yet as I'm remote desktop and can't see if the LED is lighting or not ;) I'll confirm tomorrow.

BenR
Matrix Staff
Posts: 2093
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 554 times
Been thanked: 740 times

Re: GLCD Display Manager Overhaul

Post by BenR »

Ok it looks like the WS2812B is now working, but only if you only have up to 2 of the LEDs connected. Any more and there is a gap in the transmission that is long enough to break the data chain.

I'm on it and will hopefully be able to solve this soon.

BenR
Matrix Staff
Posts: 2093
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 554 times
Been thanked: 740 times

Re: GLCD Display Manager Overhaul

Post by BenR »

Right now working on the WS2812B, note I have tested using an ESP32S3 and 6 LEDs with a rainbow effect to ensure no corruption in the output.

The code should hopefully now allow an arbitrary number of LEDs and also hopefully work on any ESP32 but let me know if you come across any issues.

I pass the LED data two LEDs at a time to the RMT peripheral on the ESP and this handles the output and I used to wait for the TX complete flag to return true before passing in the next pair of data but this is now several hundreds of microseconds after transmission ends and so cannot be relied upon anymore. So I've reverted to a fixed delay which is working well in this instance but we shall see.

jgu1
Posts: 890
Joined: Thu Dec 03, 2020 8:25 pm
Location: Denmark
Has thanked: 783 times
Been thanked: 195 times

Flowcode v11 Re: GLCD Display Manager Overhaul

Post by jgu1 »

Hi Ben!

I have made test. Full update. No changes for me. I use the ESP32 S3 DEV board. I use the pin 48 which is connected to the onboard WS2812 Led.
No data is comming out of pin 48.
When I add the WS2812 the "led" shown as in the picture on the 2D screen. Maybe I have overseen something. :?:

Br Jorgen
Attachments
WS2812.png
WS2812.png (145.78 KiB) Viewed 161 times
WS2812_S3_Test.fcfx
(9.61 KiB) Downloaded 27 times

Post Reply