janschiefer / stm32_ws2812b_hal_controller

Controlling WS2812b RGB LEDS with STM32 HAL and timers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

stm_ws2812b_hal_controller

About

An example for controlling WS2812b RGB leds and led strips with an STM32F103 Blue Pill board and only STM32 HAL timers without wasting any SPI pins.

This is actually really hard. There are bunch of overcomplicated or simply non-working examples out there.

Credit for the WS2812b library actually goes to Nico Korn @(https://github.com/nicokorn/STM32F1XX_WS2812B/).

You are awesome!

Building

  1. Load the project in STM32CubeIDE.

  2. Build the project in debug or release mode.

  3. Upload the corresponding ".bin" file to your Blue Pill development board

    or

    launch debug view with a ST-LINK debug probe attached.

  4. Simply hook up your led(s) to 3.3v, GND and the PA0 pin and there you go!

Yay!

License

MIT

TODO

Recreate library and example in Rust with stm32-rs...

About

Controlling WS2812b RGB LEDS with STM32 HAL and timers

License:MIT License


Languages

Language:C 99.8%Language:Assembly 0.2%