2022-11-17 04:56 PM
Hello,
I'm new to STM32 and trying to learn exciting stuff. I want to light a single LED from my WS2812B strip.
For example I will choose 6th LED on my computer and 6th LED on strip will light up.
But I'm not sure where to start. How can I access to single LED address? And how to get it work with STM32?
Thanks in advance.
Solved! Go to Solution.
2022-11-18 12:32 AM
Welcome, @Sadık Özel, to the community!
The topic of WS2812 has already been discussed here a few times. The thread How to use HAL DMA to generate PWM on P-NUCLEO-WB, for example, also deals with it and refers to a Github driver from Tilen Majerle and an HAL example from Martin Willner.
Maybe that will help you?
Regards
/Peter
2022-11-18 12:32 AM
Welcome, @Sadık Özel, to the community!
The topic of WS2812 has already been discussed here a few times. The thread How to use HAL DMA to generate PWM on P-NUCLEO-WB, for example, also deals with it and refers to a Github driver from Tilen Majerle and an HAL example from Martin Willner.
Maybe that will help you?
Regards
/Peter
2022-11-18 10:04 AM
> But I'm not sure where to start. How can I access to single LED address?
Of course, the idea of reading the LED's datasheet does not seem obvious?
2022-11-20 03:21 PM
After several tries I managed to get it work by PWM and DMA. Thanks a lot.
2024-03-21 03:29 AM
also use my pack,
2024-10-03 12:36 AM
Thank your for the response to this post. I have successfully used your code to driver the WB2812.
Regards
Jorgie
2024-10-31 04:48 PM
What STM32 processor are you using ?