Skip to content

chore(platformio/lpc845brk): document build flags + default-on SCT+DMA driver - #3057

Merged
zackees merged 1 commit into
masterfrom
chore/lpc845-env-sct-dma-default
Jun 15, 2026
Merged

zackees merged 1 commit into
masterfrom
chore/lpc845-env-sct-dma-default

Conversation

@zackees

@zackees zackees commented Jun 15, 2026 •

Copy link
Copy Markdown
Member

Summary

Three env:lpc845brk updates pulled out of the developer-only feat/lpc845-sct-dma-dev-unblock branch:

  1. Stale dispatch comment replaced — refers to the consolidated examples/AutoResearch/ (low-memory mode auto-engages on LPC8xx per FastLED Retire AutoResearchLpc.ino — fold into AutoResearch.ino low-memory mode #3030 / feat(autoresearch): retire AutoResearchLpc.ino, fold into AutoResearch.ino low-memory mode (closes #3030) #3041), not the retired examples/AutoResearchLpc/.
  2. Build-flag comment block documents each flag's role.
  3. Default-enables the hardware-accelerated SCT+DMA WS2812 driver (-DFASTLED_LPC_PWM_DMA=1) plus the low-memory autoresearch mode (-DFASTLED_AUTORESEARCH_LOW_MEMORY=1). Bit-bang driver still available via build_unflags = -DFASTLED_LPC_PWM_DMA=1.

Note on the dropped override

The feat/lpc845-sct-dma-dev-unblock branch also carried [tool.uv.sources] fbuild = { path = ..., editable = true } pointing at ~/dev/fbuild. That override is dropped — PyPI fbuild 2.2.28 (PR #3056) has the LPC delegation to zackees/ArduinoCore-LPC8xx, so no local-source workaround is needed.

Test plan

  • uv run fbuild --version reports 2.2.28 from PyPI.
  • env:lpc845brk resolves and dispatches to examples/AutoResearch/AutoResearch.ino.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Improvements
    • Optimized firmware build configuration for LPC845 boards with enhanced memory efficiency and improved PWM/DMA hardware support. Updated build documentation and settings to better accommodate resource constraints while maintaining feature availability.

…A driver

Three updates to the env:lpc845brk block:

1. Replaces the stale `examples/AutoResearchLpc/` dispatch comment with
   the consolidated `examples/AutoResearch/` (low-memory mode auto-
   engages on LPC8xx via FL_PLATFORM_HAS_LARGE_MEMORY == 0; FastLED
   #3030 / #3041).

2. Expands the build_flags comment block to document each flag's role:
   `-DRELEASE` (FL_DBG no-op), `-DFASTLED_LPC_PWM_DMA=1` (hardware
   SCT+DMA driver), `-DFASTLED_LPC_RX_SCT_WS2812=1` (commented-out
   loopback RPC binding; pulls <FastLED.h> and currently exceeds the
   64 KB flash budget by ~7.5 KB without further reduction work).

3. Default-enables the hardware-accelerated SCT+DMA WS2812 driver
   (`-DFASTLED_LPC_PWM_DMA=1`) plus the low-memory autoresearch mode
   (`-DFASTLED_AUTORESEARCH_LOW_MEMORY=1`). The bit-bang driver is
   still available with `build_unflags = -DFASTLED_LPC_PWM_DMA=1` per
   the LPC README's "Optional feature defines" section. This makes the
   canonical LPC845-BRK target exercise the hardware driver path that
   most users will want for production WS2812 output.

The previously parked `feat/lpc845-sct-dma-dev-unblock` developer
branch carried this change alongside a `[tool.uv.sources]` local
fbuild override that is no longer needed (PyPI 2.2.28 has the LPC
delegation). Splitting the developer override out lets the env
config land on master while the override is dropped.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
@fastled-project-sync fastled-project-sync Bot moved this to Triage in FastLED Tracker Jun 15, 2026
@zackees
zackees merged commit e15eea8 into master Jun 15, 2026
5 of 6 checks passed
@coderabbitai

coderabbitai Bot commented Jun 15, 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: 819b7b28-e120-4256-996f-510f6bd6f1e9

📥 Commits

Reviewing files that changed from the base of the PR and between 75b28fe and c0b968f.

📒 Files selected for processing (1)
  • platformio.ini

📝 Walkthrough

Walkthrough

The [env:lpc845brk] block in platformio.ini is updated to replace the single -DRELEASE build flag with a multi-flag list that also enables -DFASTLED_LPC_PWM_DMA=1 and -DFASTLED_AUTORESEARCH_LOW_MEMORY=1. Inline comments are expanded to reference examples/AutoResearch/ and to explain the commented-out SCT RX loopback flag.

Changes

LPC845 Build Flag Expansion

Layer / File(s) Summary
LPC845 build flags and bring-up docs
platformio.ini
[env:lpc845brk] gains -DFASTLED_LPC_PWM_DMA=1 and -DFASTLED_AUTORESEARCH_LOW_MEMORY=1 alongside -DRELEASE; bring-up notes are updated to reference examples/AutoResearch/ and the excluded SCT RX loopback define is documented with a flash-budget rationale.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Possibly related issues

Possibly related PRs

  • FastLED/FastLED#3041: This PR enables -DFASTLED_AUTORESEARCH_LOW_MEMORY=1 for env:lpc845brk, which directly targets the low-memory conditional mode introduced in that PR's examples/AutoResearch/ changes.
  • FastLED/FastLED#2850: This PR opts into the LPC845 SCT+DMA driver via FASTLED_LPC_PWM_DMA, the same flag gating the clockless driver added by that PR.
  • FastLED/FastLED#3009: Both PRs touch the [env:lpc845brk] environment and its bring-up harness dispatch target (examples/AutoResearch/).

Poem

🐇 Hop hop, the flags are set,
PWM and DMA — don't fret!
Low memory mode, a tidy feat,
The LPC board now feels complete.
Flash is tight but comments say why,
The rabbit builds, the LED lights fly! ✨

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore/lpc845-env-sct-dma-default

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 and usage tips.

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