Skip to content

Latest commit

 

History

History
33 lines (17 loc) · 1.31 KB

README.md

File metadata and controls

33 lines (17 loc) · 1.31 KB

stm32-ws2812

STM32 Library for WS2812 using DMA+PWM

Wiki Page

The primary documentation is on our wiki here: https://stm32world.com/wiki/STM32_WS2812_(NeoPixel_RGB_LED)

Video showing it's use here: https://www.youtube.com/watch?v=mdZerUTFJUw

STM32CubeIDE Setup

The folder containing the library source will need to be included in STM32CubeIDE under Includes

include paths

and under Sources:

include paths

The ws2812 library uses a PWM timer channel to drive the LED string. This should be configured under timers:

include paths

A DMA channel will have to be enabled as a circular buffer:

include paths

include paths

The "Counter value" is the most important value. It need to divide the timer clock so that the resulting PWM frequency is exactly 800 kHz.

include paths