Repository navigation
chore(platformio/lpc845brk): document build flags + default-on SCT+DMA driver - #3057
Conversation
…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]>
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe ChangesLPC845 Build Flag Expansion
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Possibly related issues
Possibly related PRs
Poem
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
Summary
Three env:lpc845brk updates pulled out of the developer-only
feat/lpc845-sct-dma-dev-unblockbranch: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 retiredexamples/AutoResearchLpc/.-DFASTLED_LPC_PWM_DMA=1) plus the low-memory autoresearch mode (-DFASTLED_AUTORESEARCH_LOW_MEMORY=1). Bit-bang driver still available viabuild_unflags = -DFASTLED_LPC_PWM_DMA=1.Note on the dropped override
The
feat/lpc845-sct-dma-dev-unblockbranch 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 tozackees/ArduinoCore-LPC8xx, so no local-source workaround is needed.Test plan
uv run fbuild --versionreports 2.2.28 from PyPI.env:lpc845brkresolves and dispatches toexamples/AutoResearch/AutoResearch.ino.🤖 Generated with Claude Code
Summary by CodeRabbit