This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

LED with WS2812B and STM32F1?

I would like RGB LED chip WS2812B used as a signal LED and thus seeking what the easiest way over 1Wire bus WS2812B set basic colors with one or two LEDs.
This approach me for one LED comes complicated
mikrocontroller.bplaced.net/.../

A simple idea?

Parents
  • This specific protocol is fast for using interrupts for each I/O pin toggle. But it is still so slow that it isn't fun to turn off interrupts while busy-waiting - especially when the number of chained LED:s is high, since all bits has to be sent out in a sequence to control the last LED in the chain.

    So SPI with FIFO or DMA would be the optimal hardware-acceleration. SPI is lovely to hardware-accelerate a number of serial protocols.

Reply
  • This specific protocol is fast for using interrupts for each I/O pin toggle. But it is still so slow that it isn't fun to turn off interrupts while busy-waiting - especially when the number of chained LED:s is high, since all bits has to be sent out in a sequence to control the last LED in the chain.

    So SPI with FIFO or DMA would be the optimal hardware-acceleration. SPI is lovely to hardware-accelerate a number of serial protocols.

Children