Skip to content

Change FastLED.delay to call Arduino delay when dithering is not on #1207

Closed

Description

@kriegsman

When dithering is not on, either because it has been disabled explicitly, or when the framerate has dropped too low for it to be effective, we could change FastLED.delay() so that it just called FastLED.show() one time only, and then called the Arduino delay() function for the remainder of the delay period.

This would reduce the amount time that interrupts are disabled in the cases where no new values would be written to the LED strips anyway.

When dithering is on, FastLED.delay() would still actively refresh the LED strip for the delay period, to implement the temporal dithering.

References:
Conversation where this first came up: #1206
More about temporal dithering and the master brightness control: https://github.com/FastLED/FastLED/wiki/FastLED-Temporal-Dithering

Activity

  1. self-assigned this
    on Mar 17, 2021
  2. zackees commented on Apr 16, 2026

    @zackees
    Member

    Closing this issue — it was opened over 4 years ago with no activity. If this is still relevant with a current FastLED version, please reopen with a minimal reproduction sketch and version details. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions