SkillAgentSearch skills...

Ws28xx

ws28xx (ws2811, ws2812, ws2812b, ws2815, ...) Library for STM32 (PWM+DMA)

Install / Use

/learn @nimaltd/Ws28xx

README

WS28XX (WS2811,WS2812,WS2812B,WS2815) LED Series Library for STM32 (PWM + DMA)


Please Do not Forget to get STAR, DONATE and support me on social networks. Thank you. :sparkling_heart:


  • Author: Nima Askari
  • Github: https://www.github.com/NimaLTD
  • Youtube: https://www.youtube.com/@nimaltd
  • LinkedIn: https://www.linkedin.com/in/nimaltd
  • Instagram: https://instagram.com/github.NimaLTD

  • Install Library from https://github.com/nimaltd/STM32-PACK/raw/main/WS28XX/NimaLTD.I-CUBE-WS28XX.pdsc
  • Add and enable it.
  • Configure Bit Length and ... .
  • Enable a TIMER with Internal clock and one channel PWM as default mode.
  • Enable DMA for PWM channel, set Direction Memory to Peripheral, select Increment Memory, set Memory Data Width to Byte, and set Peripheral Data Width to Half-Word.
  • Select 'Generate peripheral initialization as a pair of .c/.h files per peripheral' on the Code Generator Tab.
  • Generate Code.
  • Define a structure of WS28XX_HandleTypeDef.
  • Call WS28XX_Init() and enjoy.

Watch the Video:

<div align="center"> <a href="https://www.youtube.com/watch?v=TBYatUxH6Ek"><img src="https://img.youtube.com/vi/TBYatUxH6Ek/0.jpg" alt="Video"></a> </div>
View on GitHub
GitHub Stars102
CategoryDevelopment
Updated17d ago
Forks11

Languages

C

Security Score

85/100

Audited on Mar 14, 2026

No findings