Skip to content

Add memory allocation, device discovery, heap modules, noise animation - #1

Merged
ewowi merged 14 commits into
mainfrom
next-iteration
May 20, 2026
Merged

ewowi merged 14 commits into
mainfrom
next-iteration

Conversation

@ewowi

@ewowi ewowi commented May 19, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Adaptive memory allocation with degradation cascade (LUT + driver buffer checks, HEAP_RESERVE)
  • Per-module memory reporting (classSize via factory template, dynamicBytes tracking)
  • Device discovery in MoonDeck Live tab (subnet scan, checkboxes, online/offline status)
  • All modules heap-allocated via factory (PSRAM support via MoonModule::operator new)
  • Consistent mapping terminology (hasLUT/setIdentity, 1:1 identical/shuffled/1:0/1:N multimap)
  • Non-destructive live scenarios (cleanup created modules, relative FPS bounds)
  • NoiseEffect: BPM control, resolution-independent animation, smooth phase accumulation
  • CodeRabbit fixes: Rule of Five, bounds checks, null guards
  • New docs: performance.md (desktop + ESP32 measurements)

Test plan

  • Desktop build (zero warnings)
  • 50 unit tests pass
  • 5 scenarios pass (in-process)
  • 5 live scenarios pass on ESP32 (128x128, Olimex Gateway)
  • Platform boundary check
  • Spec check (8 modules, 8 ok)
  • ESP32 build clean
  • Reviewer agent pass

🤖 Generated with Claude Code

ewowi and others added 2 commits May 19, 2026 16:01
…s on panel

First implementation commit. 128x128 grid with animated diagonal rainbow,
sent as ArtNet packets to a hub75 panel. All MoonModules single-file .h,
platform boundary clean, zero warnings, 7 test files passing.

Also: MoonDeck improvements — Run/Stop toggle for long-running scripts,
ThreadingHTTPServer, process detection on page load, script path fixes.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Reviews against CLAUDE.md hard rules: platform boundary, hot path
constraints, code style, and design principles. Path-based instructions
for platform, core, light domain, tests, and scripts.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
@coderabbitai

coderabbitai Bot commented May 19, 2026 •

Copy link