Commit Graph

6572 Commits

Author SHA1 Message Date
Copilot
6c9922d072 docs(esp-idf): add millis/micros internals, precision-wait pattern, PDM 16-bit note, ESP_ERROR_CHECK_WITHOUT_ABORT (#357)
* Clarified PDM microphone behavior: data unit width is effectively 16-bit in PDM mode
* Updated microsecond timing with Arduino-ESP32 note about direct timer usage
* Added "Precision waiting" subsection: coarse delay then busy-spin for microsecond accuracy
* Expanded error-handling docs with non-aborting check example
* Adjusted logging example presentation for human readers

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: softhack007 <91616163+softhack007@users.noreply.github.com>
2026-04-06 19:32:02 +02:00
Frank
231373acac small update to AI instructions
upstream sync
2026-04-06 18:07:48 +02:00
Frank
eb2352774d align AI instructions with upstream
some updates coming from ongoing work
2026-04-06 17:14:40 +02:00
Frank Möhle
a8463fa510 Fix ArduinoJSON path in copilot instructions
Corrected the path for ArduinoJSON and AsyncJSON dependencies.
2026-04-06 00:46:04 +02:00
Frank Möhle
e0ad3c4638 robustness improvement: rewind file before writing empty JSON skeleton
prevents creating corrupted JSON
if the previous file content was ``{}``, the result would be ``{"0":{}}`` if the file position is not reset first.
2026-04-05 22:01:33 +02:00
Copilot
72b1f59e42 Fix robustness issue: empty JSON {} in cfg.json or wsec.json (#355)
* Treat empty or effectively-empty configuration files as invalid: restore defaults, optionally fall back to stored settings, and avoid silently using blank configurations.
* Improve presets handling by detecting and recreating empty or undersized preset files so presets are reliably initialized and usable.

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: softhack007 <91616163+softhack007@users.noreply.github.com>
2026-04-05 17:47:33 +02:00
Frank Möhle
101cb8b5ba Merge pull request #356 from MoonModules/copilot/add-scope-to-ignore-agent-instructions
fix: make agent-build.instructions.md visible to agent mode; fix cpp.instructions.md glob whitespace
2026-04-05 17:46:04 +02:00
copilot-swe-agent[bot]
2ac93463f5 fix: make agent-build.instructions.md visible to agent mode; fix cpp.instructions.md glob whitespace
Agent-Logs-Url: https://github.com/MoonModules/WLED-MM/sessions/cc079927-b059-4d79-9290-886ef72964c8

Co-authored-by: softhack007 <91616163+softhack007@users.noreply.github.com>
2026-04-05 15:34:11 +00:00
Frank
1fce76600c strengthen that at one firmware build is necessary after code changes. 2026-04-05 15:21:30 +02:00
Frank
19b44b73c4 add ArduinoJSON location to project overview 2026-04-05 14:58:51 +02:00
Frank Möhle
4452a6c955 Update repository structure section in instructions
small readability improvement
2026-04-05 14:32:43 +02:00
Frank Möhle
1243c7b1fa Revise *.instructions.md: separate AI-relevant special knowledge from background information for contributors (#354)
Revising AI review instructions:
* Reduce context window use for AI review tools, by avoiding repeating common knowledge and API information that is (usually) part of the AI training datasets any way.
* Introduce a mechanism to maintain both parts in single files, to avoid "silent diversion" over time
* Adding a coderabbit path instruction that ensures cross-checking of both parts whenever a PR modifies instruction files

Objectives:
* Primary Goal: only inject content in AI-visible areas that are WLED-MM–specific or which deviate from general knowledge (the context window "token cost" of true false-positive suppressors is always worth it).
* Soft goal: keep each file's AI-facing section lean enough that the signal-to-noise ratio in the attention layer stays high — around 1,500–2,000 words per file type is a reasonable practical ceiling for current models.
* Aspirational: 500 words per file if achievable without sacrificing review quality.

This is an evolution of #353, based on the discussion in https://github.com/MoonModules/WLED-MM/pull/353#issuecomment-4186989873

---------

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2026-04-04 22:58:30 +02:00
Frank Möhle
e969a9b272 Fix typo 2026-04-04 09:40:45 +02:00
Frank Möhle
19105831c9 Update CONTRIBUTING.md
Updated links in the contributing guide and added information about coding style and review bot.
2026-04-04 03:34:23 +02:00
Frank Möhle
5bf6306755 Update guidelines for code review process
Added a guideline to justify or remove unused/dead code.
2026-04-04 02:48:37 +02:00
Frank Möhle
774efc3768 Enhance instructions on acknowledging good patterns
Expanded the guideline on acknowledging good patterns to include summarizing good practices as part of reviews.
2026-04-04 02:39:38 +02:00
Copilot
44a96c311d Revise copilot-instructions.md: consolidate, shorten, extract and extend language-specific rules (#353)
Revise copilot-instructions.md: consolidate redundant sections, extract language-specific rules
* Added comprehensive internal documentation files establishing coding standards and development workflows for C++, Web UI, CI/CD, and ESP-IDF components.
* Implemented CodeRabbit configuration to enforce repository-specific code review guidance and quality standards across pull requests.
* Documented development workflow procedures and contribution expectations to streamline the development process and improve code consistency.

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: softhack007 <91616163+softhack007@users.noreply.github.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2026-04-04 01:41:06 +02:00
Frank
5735fd3f32 sync python requirements with upstream
fingers crossed
2026-04-02 11:55:00 +02:00
Frank
280a8d070b python update for build.yml 2026-04-02 11:51:15 +02:00
Frank
28834aa17c documentation sync with upstream 2026-04-02 11:37:35 +02:00
Frank
0e739e1354 post-merge 2026-04-02 11:25:11 +02:00
Will Tatam
41f5bb69d3 Merge pull request #5451 from wled/dependabot/pip/requests-2.33.0
Bump requests from 2.32.4 to 2.33.0
2026-04-02 11:18:24 +02:00
Will Tatam
f7d5483def Merge pull request #5454 from wled/dependabot/npm_and_yarn/brace-expansion-5.0.5
Bump brace-expansion from 5.0.3 to 5.0.5
2026-04-02 11:17:53 +02:00
Will Tatam
b38c22a2b5 Merge pull request #5449 from wled/dependabot/npm_and_yarn/picomatch-2.3.2
Bump picomatch from 2.3.1 to 2.3.2
2026-04-02 11:16:55 +02:00
Frank Möhle
9d73bcc2ad Clarify instructions to always use the correct source code branch
Updated instructions for providing references in analysis results.
2026-03-30 00:19:48 +02:00
Frank
b20b5a011c sync common.js with upstream
import latest changes to common.js from upstream.
Only needed for 3rd party tools.
2026-03-29 22:16:26 +02:00
Frank
7bd8d5008b bugfix: update Flash Usage after file upload
if we have the flicker-free RMT driver, also update FS usage info when filling /json/state
2026-03-29 22:14:20 +02:00
Frank
f5c11f2e2e DDP debug messages when receiving unsupported packets 2026-03-29 19:25:10 +02:00
Copilot
d9e8203276 DDP input: reject packets with unsupported data type or non-display destination (#5390)
* Fix: reject invalid DDP packets with wrong destination or unsupported data type

Co-authored-by: DedeHai <6280424+DedeHai@users.noreply.github.com>
2026-03-29 19:04:32 +02:00
Frank
a233e99909 Update copilot-instructions.md
align with instruction used in upstream
2026-03-28 11:37:39 +01:00
Will Tatam
b86875e9ea do not keep prompting if there was an error, e.g no wifi 2026-03-28 11:14:57 +01:00
Frank
15c11d94f8 some extra PSRAM infos
unfortunately n7a in esp-idf 4.4.x
2026-03-26 20:48:38 +01:00
Frank
c0cbe89af4 fix misplaced closing bracket 2026-03-26 20:08:20 +01:00
Frank
a70b945bce experimental: more info about PSRAM and Flash
* PSRAM speed and transfer mode (serial only)
* added all possible modes and speed flags (-P4 included)
2026-03-26 19:51:27 +01:00
Frank
9fd2a51cf4 fix for APA102 crash on classic esp32 with PSRAM
On esp32 with PSRAM, one of the SPI hosts (HSPI or VSPI) will be occupied by the system. Application code should never touch this SPI host.
2026-03-26 18:09:35 +01:00
Frank
453c5e6023 HUB75 color re-ordering optimization
only perform color re-ordering when needed.
This allows for better optimization by the compiler.
2026-03-26 12:14:49 +01:00
Frank
d948ec667e fast inline color fading for bus drivers
based on upstream color_fade() and color_scale() by @DedeHai
2026-03-26 12:12:32 +01:00
Troy
d885677896 Merge pull request #349Give HUB75 Color Order Overrides from troyhacks/mdev
Give HUB75 Color Order Overrides
2026-03-25 12:02:03 -04:00
Troy
2aa05cbc86 Default HUB75 color order to RGB 2026-03-25 11:29:16 -04:00
Troy
44d666c8b6 Give HUB75 Color Order Overrides 2026-03-25 09:32:14 -04:00
Frank
50f507fa56 bugfix: prevent _segment_index being misaligned w.r.t. segments vector
prevent that an inactive segment in the segments list causes misalignment between getSegmentID() and actual segments vector.
2026-03-24 15:46:09 +01:00
Will Miles
75e1ade22f Use correct fix for SHA256 hash string
@coderabbitai caught the problem, but its fix suggestion was out to
lunch on this one.  Passing an unsigned char to String.concat() appends
it as a number instead of appending the character.

Instead, mask the unneceeded bits.
2026-03-22 14:43:20 +01:00
Frank Möhle
7a0f093ab1 small robustness improvement for closeFile()
Refactor file closing logic to improve concurrency handling: "Consuming" doCloseFile early reduces the risk that several tasks will try to close the same file.
2026-03-21 23:46:27 +01:00
Frank
11b9b6529c 8266: fix flickering during file write (experimental)
8266 also has problems - file.close() will stall interrupts, so we need to wait a bit until leds were updated
2026-03-21 20:37:53 +01:00
Frank Möhle
afb383d0a2 Fix undefined behavior in bootloader SHA256 hex conversion
Change char to unsigned char to avoid undefined behavior during right-shift operation.
2026-03-21 15:43:06 +01:00
Will Tatam
1f92ac1c8b Merge pull request #346 from netmindz/mdev
Upgrade to Tasmota Arduino Core 2.0.18 with IPv6 support, based on ID…
2026-03-12 06:40:59 +00:00
Frank Möhle
2672ed7e51 Update release link to latest version
always point to the latest release
2026-03-12 00:38:00 +01:00
Frank
b5788d3912 colorClouds WLED-MM specific optimizations
* use map2 - more accurate
* use min(max()) instead of constrain - faster
2026-03-11 19:40:34 +01:00
Joachim Dick
f96c2087d9 New smooth effect: Color Clouds (#5268)
* New Effect: Color Clouds

ColorClouds: Random start points for clouds and color

ColorClouds: new config option 'More red'

* ColorClouds: Incorporated review comments

- Support for color palettes
- Use perlin16() instead of inoise16()
- Use cos8_t() instead of cos8()

* ColorClouds: incorporated more review comments

* ColorClouds: incorporated final review comment
2026-03-11 19:26:42 +01:00
Frank
2dedbf469a minor info page updates
* removed core restart reasons (esp restart code is sufficient)
* added time info
* moved repo to last line
2026-03-11 19:02:29 +01:00