Skip to content

docs(esp32): clarify show and wait semantics - #3934

Merged
zackees merged 1 commit into
masterfrom
docs/1049-esp32-show-wait
Aug 20, 2026
Merged

zackees merged 1 commit into
masterfrom
docs/1049-esp32-show-wait

Conversation

@zackees

@zackees zackees commented Aug 20, 2026 •

Copy link
Copy Markdown
Member

Summary

  • explain that FastLED.delay() is animation pacing, not an ESP32 transmission-completion primitive
  • document checked FastLED.wait(timeout) for FreeRTOS tasks that require on-wire completion
  • distinguish the default RMT latch fix from the newly tracked RMT4/I2S reset-timing gap
  • clarify the current no-argument wait timeout behavior pending fix(core): make no-argument FastLED.wait() honor its completion contract #3933

Validation

  • git diff --check
  • bash lint
  • clud-review: clean

Closes #1049

Summary by CodeRabbit

  • Documentation
    • Clarified how FastLED.wait() behaves with default and explicit timeouts, including zero-millisecond waits.
    • Documented frame reuse and cleanup considerations when waiting for LED updates to complete.
    • Added FreeRTOS usage guidance for FastLED.show(), FastLED.wait(), and FastLED.delay(), including asynchronous completion and task scheduling considerations.

@zackees
zackees merged commit dbdad8e into master Aug 20, 2026
9 of 17 checks passed
@zackees
zackees deleted the docs/1049-esp32-show-wait branch August 20, 2026 14:45
@coderabbitai

coderabbitai Bot commented Aug 20, 2026 •

Copy link
Copy Markdown

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 605eb5a3-c2d4-4952-9252-36190e252372

📥 Commits

Reviewing files that changed from the base of the PR and between 8fd63d6 and d3a685d.

📒 Files selected for processing (2)
  • src/FastLED.h
  • src/platforms/esp/32/README.md

📝 Walkthrough

Walkthrough

The changes clarify FastLED.wait() documentation and add ESP32 FreeRTOS guidance for coordinating show(), wait(), and delay() with asynchronous LED backends.

Changes

Wait and task scheduling documentation

Layer / File(s) Summary
Wait semantics and ESP32 task guidance
src/FastLED.h, src/platforms/esp/32/README.md
The API documentation distinguishes the default and timeout overloads of FastLED.wait(). ESP32 guidance explains frame reuse, completion synchronization, cooperative waiting, and the separate role of FastLED.delay().

Estimated code review effort: 1 (Trivial) | ~5 minutes

Possibly related issues

Possibly related PRs

  • FastLED/FastLED#3917 — Both PRs update CFastLED API documentation in src/FastLED.h; this PR covers wait(), while that PR covers show().
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch docs/1049-esp32-show-wait

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@fastled-project-sync fastled-project-sync Bot moved this to Triage in FastLED Tracker Aug 20, 2026
@fastled-project-sync fastled-project-sync Bot moved this from Triage to Done in FastLED Tracker Aug 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Having Fastled.Delay must after Show while using FastLed on ESP32 Amazon FreeRtos

1 participant