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!
-
Load the project in STM32CubeIDE.
-
Build the project in debug or release mode.
-
Upload the corresponding ".bin" file to your Blue Pill development board
or
launch debug view with a ST-LINK debug probe attached.
-
Simply hook up your led(s) to 3.3v, GND and the PA0 pin and there you go!
Yay!
Recreate library and example in Rust with stm32-rs...