raspberry pi 3/3+ and WS2812B

Any bugs you encounter with Flowcode should be discussed here.
Post Reply
aflowcode
Posts: 2
http://meble-kuchenne.info.pl
Joined: Wed Jul 06, 2022 2:19 pm

raspberry pi 3/3+ and WS2812B

Post by aflowcode »

dear matrix team

i use flowcode 8.2.2.15 pro and noticed that the neopixel ws2811/12 component does not compile for the raspberry family.
the nops used for cycle delay are not working.
Building fc1_ws2812b
c:\users\Temp\cc6MarXG.o: In function `FCD_06621_LED_WS2811__Refresh':
fc1_ws2812b.c:(.text+0x4440): undefined reference to `nop'
fc1_ws2812b.c:(.text+0x4444): undefined reference to `nop'
fc1_ws2812b.c:(.text+0x4448): undefined reference to `nop'
fc1_ws2812b.c:(.text+0x444c): undefined reference to `nop'
fc1_ws2812b.c:(.text+0x4450): undefined reference to `nop'
c:\users\IR\AppData\Local\Temp\cc6MarXG.o:fc1_ws2812b.c:(.text+0x4454): more undefined references to `nop' follow

hope this can be addressed, looking forward to read your opinion. i attach a rudimentary fcfx. btw, no problems with the component in atmel projects.
thank you very much.
Attachments
fc1_ws2812b.fcfx
(8.22 KiB) Downloaded 37 times

BenR
Matrix Staff
Posts: 1759
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 447 times
Been thanked: 606 times

Re: raspberry pi 3/3+ and WS2812B

Post by BenR »

Hello,

Thanks for letting us know, I'm not sure how to do the timings for a RPI but I'll have a dig and see if there's a nice way to do it.

aflowcode
Posts: 2
Joined: Wed Jul 06, 2022 2:19 pm

Re: raspberry pi 3/3+ and WS2812B

Post by aflowcode »

dear BenR
nice to get your rapid reply. there is plenty of working c code online, mostly in rpi forums. i was trying something quick and dirty, re-defined nop in the supplementary code, and got it compiled. I found that there is actually a single sequence being sent, but not in the correct timing scheme.

thank you for your effort. hope you can work it out!!

Post Reply