WS2812B_STM32F4 icon indicating copy to clipboard operation
WS2812B_STM32F4 copied to clipboard

Question about setting the next pixel value to zeros in DMA_TransferHalfHandler

Open yp05327 opened this issue 10 months ago • 0 comments

I have a question about the code here: https://github.com/hubmartin/WS2812B_STM32F4/blob/0e47916345becbebc0dad0df188d80d8b8a7991d/Src/ws2812b/ws2812b.c#L315 The first parameter of ws2812b_set_pixel is led channel, so the code above should set all channels as the following but not only channel 0?

for( i = 0; i < WS2812_BUFFER_COUNT; i++ )
{
    ws2812b_set_pixel(i, 0, 0, 0, 0);
}

yp05327 avatar Sep 27 '23 01:09 yp05327