Documentation
SparkleMap public-beta guide
ledmap.json, and reboot WLED. Download and retain recovery packages until WLED-native validation passes.Requirements
- A modern Chromium-based browser. Android Chrome is the primary camera-tested environment; Windows Chrome and Microsoft Edge are suitable for import, generation, installation, and validation.
- A WLED controller reachable on the same local network. Tested builds include WLED 16.0.1 and 17.0.0-dev.
- A stable camera view that keeps the complete installation in frame. A tripod or fixed phone support is strongly recommended.
- A complete WLED configuration and preset backup. SparkleMap recovery downloads supplement, but do not replace, a known-good backup.
Guided workflow
- Connect: enter the WLED IP address or hostname and confirm the reported count.
- Scan: prepare WLED for raw scanning when needed, then scan with a camera or choose an existing scan.
- Review: inspect confidence warnings and geometric collisions.
- Generate: accept SparkleMap's recommendation or choose regular/sparse dimensions.
- Install: inspect, confirm, download recovery, prepare WLED, upload, reboot, and verify.
- Validate: confirm a WLED-native effect, then compare SparkleMap patterns with the logical preview.
- Diagnostics: copy the redacted log when reporting a problem.
Prepare WLED for raw scanning
An active WLED map can make the reported LED count represent logical canvas cells instead of physical outputs. For example, the tested sparse fixture has 64 physical LEDs but WLED reports 391 after the 17 × 23 map is active.
- Connect to WLED.
- If the count is not the expected physical output count, choose Prepare WLED for scanning.
- Confirm the warning and verify that the pre-scan recovery JSON downloads.
- SparkleMap removes
ledmap.jsonand2d-gaps.json, posts zero matrix panels, reboots WLED, and reconnects. - Confirm the raw physical count before scanning.
Do not begin a physical scan while an active map or 2D panel transformation remains configured.
Camera scanning
Choose Scan with camera, grant camera permission, and use the full-window camera workspace.
- Start/end index
- The inclusive physical range. Use 0–63 for 64 LEDs or 0–255 for 256 LEDs.
- Green threshold
- Raise to reject reflections; lower only if real pixels are missed.
- Brightness
- Use the lowest level that produces one clear green spot. Excess brightness causes bloom and reflections.
Run the complete scan without moving the camera. Cancel restores the saved WLED state and preserves the previous valid scan. A communication failure does not replace the previous valid scan.
Import an existing scan
Select Import an existing scan and choose a SparkleMap scan JSON. Invalid JSON and structurally invalid files are rejected while the previous valid scan is preserved. Scan exports may contain the WLED address and installation geometry; redact before sharing publicly.
Generate a logical map
Complete rectangular grid is for matrices where every logical cell has one LED. Sparse surface is for trees, props, loops, outlines, and irregular strings; unused cells are stored as -1.
SparkleMap recommends compact, recommended, and detailed dimensions based on detection geometry. A grid must contain at least as many cells as physical LEDs. Tested fixtures:
- 256 physical LEDs, regular 32 × 8 map.
- 64 physical LEDs, sparse 17 × 23 map with 327 empty cells.
Before deployment, verify assigned count, missing indices, duplicate indices, empty cells, and assignment error.
Inspect and install
- Choose Inspect deployment. Inspection is read-only.
- Review the count meaning. A mapped WLED build may report logical cells, such as 391 for 17 × 23, while SparkleMap independently verifies 64 physical assignments.
- Check the configuration-change consent.
- Choose Back up, prepare, and install.
- Keep the downloaded recovery package private and retain it until validation passes.
- SparkleMap removes stale map files, configures ordinary 1D mode, reboots, uploads
ledmap.json, verifies it byte-for-byte, reboots again, and checks logical dimensions and map ID 0.
If automation fails, reconnect, run inspection again, and retry. The manual fallback is to remove stale maps under WLED's file editor, configure 1D Strip, upload the generated file as ledmap.json, reboot, and validate. Do not upload SparkleMap's map through WLED's Gap File control.
Validation
First run PixelForge or another native WLED 2D effect and check the native-validation confirmation. SparkleMap then uses Installed WLED map using logical outputs. Before installation, raw mode translates logical cells through the generated map.
- Center marker: selects the nearest mapped LEDs, even when the exact center is empty.
- Mapped shape boundary: selects mapped LEDs nearest the occupied shape's convex boundary.
- Logical canvas outline: selects mapped LEDs on the rectangle's edges and may contain gaps on sparse maps.
- All mapped pixels: verifies complete mapped coverage.
Test horizontal, vertical, and diagonal lines plus low, middle, and maximum thickness levels. Restore the saved WLED state when finished.
Sessions
Save and resume use browser storage tied to the exact website origin. Export/import transfers a session between devices or preview hostnames. Sessions contain settings, centroids, map data, confirmations, and validation controls, but no camera frames.
Failure and recovery
- Cannot connect: verify WLED power, address, and local network access.
- Camera denied: allow camera permission for the site, then retry.
- Lost communication during scan: reconnect WLED and start the scan again; verify the controller state.
- Deployment interrupted: restore connectivity, reconnect, inspect deployment, and retry. Do not confirm native validation after a failed deployment.
- Incorrect physical count: use Prepare WLED for scanning and confirm the recovery download.
- Recovery: restore files and configuration through WLED's local interface using the private recovery package.
Privacy and safe sharing
Camera frames are processed locally and are not intentionally uploaded. WLED requests go directly from the browser to the supplied local address. Browser sessions remain local to the site origin. Recovery packages can include WLED configuration, presets, mappings, and local addresses. Do not attach recovery packages publicly. Redact IP addresses, hostnames, Wi-Fi details, preset content, and personal information from issue reports.
Known limitations
- Browser local-network and mixed-content behavior varies. Test the final production HTTPS hostname with the intended browser.
- Camera reflections, motion, and auto-exposure can reduce confidence. Physical validation remains required.
- Mapped Shape Boundary follows the occupied LEDs' convex boundary and does not invent pixels across physical gaps.
- Browser-side recovery cannot guarantee restoration if the browser, phone, network, or controller loses power.
- WLED versions may report physical outputs before deployment and logical canvas cells after an active map loads.
Report a problem
Use the GitHub issue forms. Include the SparkleMap build, WLED version, browser/OS, geometry, reproduction steps, and a redacted diagnostic log. Never post credentials or an unredacted recovery package.