Skip to content

docs(i2s): add classic-ESP32 I2S driver README (#3512 Phase 8) - #3521

Merged
zackees merged 1 commit into
masterfrom
feat/i2s-readme-3512
Jul 1, 2026
Merged

zackees merged 1 commit into
masterfrom
feat/i2s-readme-3512

Conversation

@zackees

@zackees zackees commented Jul 1, 2026 •

Copy link
Copy Markdown
Member

Summary

New src/platforms/esp/32/drivers/i2s/README.md documenting the classic-ESP32 I2S parallel-out clockless driver's current state — the state after PR #3479 restore + PR #3511/#3514 IDF6 shim + PR #3518-#3520 selector cleanup + Phase 5 unity re-include.

Covers files, user binding, IDF version compat table, streaming ISR DMA refill invariant, global-state migration path, known long-tail bugs, and cross-links to every open sub-issue.

Part of #3516 / #3512 Phase 8.

Test plan

  • bash test --cpp: 344/344 pass
  • bash lint --cpp: clean
  • Documentation-only — no code impact

Summary by CodeRabbit

  • Documentation
    • Added detailed guidance for the ESP32 I2S1 parallel-out LED driver, including supported setup paths and version compatibility notes.
    • Clarified runtime requirements for reliable streaming, such as memory placement, buffer refill behavior, and semaphore handling.
    • Included current status notes, known issues, and references for related work.

New `src/platforms/esp/32/drivers/i2s/README.md` documenting the
classic-ESP32 I2S parallel-out clockless driver as it stands today
(post #3479 restore + #3511/#3514 IDF6 compat +
#3518-#3520 selector cleanup + Phase 5 unity re-include).

Covers:

- **Files**: purpose of each `.h`/`.cpp.hpp` in the directory
- **User-facing binding today**: legacy `addLeds<>` via
  `-DFASTLED_ESP32_I2S=1` (production) vs modern channel-manager
  (not there yet — depends on Phase 4)
- **ESP-IDF version compat table**: IDF 4.x/5.x production; IDF 6.x
  compiles via the `i2s_periph_compat.h` shim (bench validation
  pending real WROOM + IDF 6 platform binding)
- **Streaming ISR DMA refill invariant**: the whole-point-of-I2S
  streaming pattern that any future refactor must preserve. Points at
  the ISR handler location and lists the three concrete guarantees.
- **Global state**: acknowledges the 10+ file-scope statics tracked
  under #3489, with the migration path via Phase 6.
- **Known bugs**: #1165 (`I2S_DEVICE=1` doesn't drive output)
  and #1384 (blocking `showPixels()`) with their respective
  fix paths through Phase 2 / Phase 4.
- **References**: cross-links to every open sub-issue, meta issue,
  and previous PR in the driver-dev umbrella.

Part of #3516 / #3512 Phase 8.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
@zackees
zackees merged commit 2bc642b into master Jul 1, 2026
7 of 10 checks passed
@coderabbitai

coderabbitai Bot commented Jul 1, 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

Run ID: ab3da08f-ea5b-40bb-aef5-f7462377aa59

📥 Commits

Reviewing files that changed from the base of the PR and between a9e0117 and 0eed277.

📒 Files selected for processing (1)
  • src/platforms/esp/32/drivers/i2s/README.md

📝 Walkthrough

Walkthrough

This PR adds a new README file documenting the classic ESP32 I2S1 parallel-out clockless driver for WS2812-family LEDs, covering binding paths, ESP-IDF version compatibility, ISR/DMA invariants, global state status, known bugs, and related references.

Changes

Driver Documentation

Layer / File(s) Summary
ESP32 I2S driver README
src/platforms/esp/32/drivers/i2s/README.md
New README documenting the classic ESP32 I2S1 parallel-out clockless driver, including binding paths (legacy vs. planned channel-manager routing), ESP-IDF version compatibility notes (IDF 6 clock/reset compat shim), ISR/DMA streaming invariants, global state status, known bugs, and reference links.

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

Possibly related issues

Possibly related PRs

  • FastLED/FastLED#3473: Implements and tests the same Stage 1 classic driver behavior and invariants this README documents.
  • FastLED/FastLED#3477: Deletes the legacy I2S/clockless driver path and FASTLED_ESP32_I2S gate that this README documents.
  • FastLED/FastLED#3479: Restores/adds the actual classic driver code and wiring that this README describes.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/i2s-readme-3512

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.

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.

1 participant