Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 3 of 3

Thread: OctoWS2811 Sequences

  1. #1
    Junior Member
    Join Date
    Dec 2022
    Posts
    16

    OctoWS2811 Sequences

    Hi,

    I am attempting to use the OctoWS2811 library to control LEDs on a robot I am constructing. The main purpose of the LEDs is to display colored sequences (e.g. a yellow light flashing repeatedly) to communicate the robot's status. To time these flashes, I would have to call from the main loop repeatedly to check whether enough time has passed for each part of the flashing sequence. Does OctoWS2811 provide a way to offload this job to the DMA part? Technically it should be possible I think but I didn't find anything yet. I want to avoid having to call from the main loop as sometimes the main loop might require a longer time to complete once and thus the LED update will not be called often enough.

    Thank you!

  2. #2
    Senior Member BriComp's Avatar
    Join Date
    Apr 2014
    Location
    Cheltenham, UK
    Posts
    1,051
    If you were to examine OctoWS2811.h and OctoWS2811.cpp you would see that the library already uses DMA.

  3. #3
    Junior Member
    Join Date
    Dec 2022
    Posts
    16
    Thank you but I am well aware of that. I know it uses DMA to send out the correct signals to the WS2811 to set each pixel's color correctly. However, one could also consider making these DMA sequences longer, such that the pixels for example flash at a fixed frequency by concatenating the corresponding WS2811 signals.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •