Skip to content

fix(teensy): expose Audio dependency to LDF scanners - #3692

Merged
zackees merged 1 commit into
masterfrom
fix/1088-teensy-audio-ldf
Jul 16, 2026
Merged

zackees merged 1 commit into
masterfrom
fix/1088-teensy-audio-ldf

Conversation

@zackees

@zackees zackees commented Jul 16, 2026 •

Copy link
Copy Markdown
Member

Summary

  • expose <Audio.h> through FastLED’s Teensy platform include chain
  • let PlatformIO LDF and fbuild observe/select the Teensy Audio implementation
  • preserve the existing TEENSY_AUDIO_LIBRARY_AVAILABLE guard and low-RAM board exclusions

Intended result

The intended result is that a sketch including only FastLED.h places Teensy Audio in the dependency chain for both PlatformIO LDF and fbuild. This is a small dependency-discovery shim; it does not manually compile Audio sources or broadly enable unrelated Teensy framework libraries. LTO and section garbage collection remain responsible for removing unused Audio code.

Validation

  • bash compile teensy41 --examples Blink — passed; fbuild compile database contains libraries/Audio/input_i2s.cpp and input_i2s2.cpp; flash remained 100,352 bytes and RAM was 72,544 bytes.
  • bash compile teensy41 --examples AudioInput — passed; Teensy Audio consumer links successfully.
  • bash compile wasm --examples Blink — passed.
  • bash lint --cpp — passed; existing 42 PlatformIO-internal findings remain warn-only.

Coordinated with FastLED/fbuild#1088.

Summary by CodeRabbit

  • Bug Fixes
    • Improved Teensy Audio library detection and integration for PlatformIO projects.
    • Ensured the Audio library is included when Teensy audio input support is enabled and available.

@coderabbitai

coderabbitai Bot commented Jul 16, 2026 •

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 30ccf462-73c1-40c1-8d99-ff773dc4c619

📥 Commits

Reviewing files that changed from the base of the PR and between c7263b5 and ac9d8f4.

📒 Files selected for processing (1)
  • src/platforms/arm/teensy/ldf_headers.h

📝 Walkthrough

Walkthrough

The Teensy LDF header now includes the audio configuration and conditionally exposes <Audio.h> when FastLED Teensy audio support and the Audio library are available.

Changes

Teensy Audio dependency discovery

Layer / File(s) Summary
Conditional Teensy Audio header wiring
src/platforms/arm/teensy/ldf_headers.h
Includes the Teensy audio configuration and conditionally adds <Audio.h> to the FastLED include chain with IWYU keep pragmas.

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

Possibly related issues

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely describes the main change: exposing Teensy Audio as a dependency for LDF scanning.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ 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 fix/1088-teensy-audio-ldf

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 merged commit 82a0686 into master Jul 16, 2026
10 checks passed
@fastled-project-sync fastled-project-sync Bot moved this from Triage to Done in FastLED Tracker Jul 16, 2026
@zackees
zackees deleted the fix/1088-teensy-audio-ldf branch August 21, 2026 19:15
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