Skip to content

docs(esp8266): document the shared Arduino-I2S audio-input path (#4948) - #4954

Merged
zackees merged 1 commit into
masterfrom
feat/4948-esp8266-audio-input
Oct 28, 2026
Merged

zackees merged 1 commit into
masterfrom
feat/4948-esp8266-audio-input

Conversation

@zackees

@zackees zackees commented Oct 27, 2026

Copy link
Copy Markdown
Member

Stacked on #4953 (#4947). Fixes #4948. Part of #4949.

Problem

No dedicated audio-input backend for ESP8266: audio_input.cpp.hpp excludes
ESP8266 from the ESP32 engine (FL_IS_ESP32 && !FL_IS_ESP8266) and falls back
to the generic Arduino-I2S path.

Change (resolution: no dedicated engine; document the limitation)

  • src/platforms/esp/8266/README.md — an "Audio input" section: ESP8266 has
    no dedicated engine; fl::AudioInput uses the shared Arduino-I2S backend
    (platforms/arduino/audio_input.hpp) when <I2S.h> is present (the ESP8266
    core ships it), no ESP32-style native engine is planned, and the low-memory
    tier makes the shared sample buffer the limiting factor. Null_Audio when
    <I2S.h> is absent.
  • audio_input.cpp.hpp — a pointer comment at the ESP8266 exclusion.

The acceptance explicitly allows this branch ("or an explicit note in the
platform README").

Test plan

  • bash compile esp8266 --examples Blink succeeds (comment-only code change).

ESP8266 has no dedicated audio-input engine; fl::AudioInput falls
through to the shared Arduino-I2S backend (platforms/arduino/
audio_input.hpp) whenever <I2S.h> is present, which the ESP8266 core
provides. Record that explicitly in the platform README (low-memory
tier; shared-buffer limits; Null_Audio when <I2S.h> is absent) and add
a pointer comment at the ESP8266 exclusion in audio_input.cpp.hpp.

Closes the 'decide whether ESP8266 gets a real I2S audio-input engine'
question as: no, document the limitation.

Refs #4948, #4949.
@coderabbitai

coderabbitai Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

Caution

Review failed

The pull request is closed.

Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

@zackees

zackees commented Oct 27, 2026

Copy link
Copy Markdown
Member Author

Memory check (fbuild bloat, Blink, esp8266)

uv run ci/bloat.py esp8266 compared against the master baseline:

master this stack Δ
image_flash 264,671 B 264,667 B -4 B
attributed flash 203,252 B 203,249 B -3 B
RAM 6,808 B 6,808 B 0 B

No memory regression: the unused ESP8266 engines are dead-stripped (template selection + linker elimination), so naming none of them costs ~nothing, as intended (#2428).

@zackees
zackees changed the base branch from feat/4947-esp8266-embedded-fs to master October 28, 2026 00:23
@zackees
zackees merged commit 7ceda6b into master Oct 28, 2026
3 checks passed
@fastled-project-sync fastled-project-sync Bot moved this from Triage to Done in FastLED Tracker Oct 28, 2026
@zackees
zackees deleted the feat/4948-esp8266-audio-input branch November 5, 2026 05:52
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.

ESP8266: dedicated audio-input backend (currently a generic Arduino-I2S fallback)

1 participant