ws2812 ws2812 over platformIO for STM32F103xx this is basic so for number of led u use go to ws2812.h file and set buffer size . size buffer is equal to number of led * 3 good luck