Commit Graph

5174 Commits

Author SHA1 Message Date
Frank
3fd5e190c4 reduce memory needs of popcorn effect
On a matrix with 52 columns, popcorn was requesting around 30Kb of segment data.
This patch reduces the data to the actually necessary amount based on the "intensity" slider. If intensity is increased, it means that the effect will get a bigger chunk of data allocated - zero'd out but this does not hurt much.
2024-04-16 20:07:51 +02:00
Frank
019cafc5e0 report out-of-memory situations to the user 2024-04-16 19:10:46 +02:00
Frank
b27686bd2b audioreactive small optimization
* clear vImag[] using memset
* zerocrossing detection: directly check sign bit
2024-04-10 12:34:32 +02:00
Frank
164c9a12cc minor version upgrade to -b30.37 2024-04-09 21:39:51 +02:00
Frank
1d1a53b703 align with upstream platformio.ini
adding 160Mhz 8266 builds
NB: MoonModules 8266 build are always using 160Mhz,  so nothing new for us ;-)
2024-04-09 21:14:35 +02:00
Frank
8e84dba644 post-merge
this one was almost lost
2024-04-09 21:01:44 +02:00
Blaz Kristan
4093df1de5 WLED 0.14.3 release
- Fix for transition 0 (#3854, #3832, #3720)
- copyright year update
- updated AsyncWebServer to v2.2.0
2024-04-09 20:43:55 +02:00
Blaz Kristan
c946b52974 WLED 0.14.2 release 2024-04-09 20:13:35 +02:00
Frank
98b5ad1268 Update CONTRIBUTING.md
Trying to explain why any PR should have a`description`
2024-04-09 20:09:48 +02:00
Frank
0bb0b7f036 Custom palette gamma (fixes #126)
based on upstream 7f6486c77d
2024-04-09 20:02:06 +02:00
Blaž Kristan
7b87c27402 Merge pull request #3616 from demophoon/dmx-segment-options-expanded
Add additional segment options when controlling over e1.31
2024-04-09 19:29:51 +02:00
Frank
bc249379f0 minor improvements from upstream
* add checkSettingsPIN() and get_random_wheel_index() functions
* add on/off state to UDP data
* small robustness improvements
2024-04-09 15:43:46 +02:00
cschwinne
aff4de34b4 WS logic: No resending, improved ESP8266 stability
Update ESP8266 core to 3.1.2
2024-04-09 14:15:06 +02:00
Blaz Kristan
e94064adde Bugfix.
- feed WDT even if strip is updating
- provide custom palette names
- handle interface cooldown properly
- rotary encoder ALT fix for custom palettes
2024-04-09 14:09:17 +02:00
Blaz Kristan
0ddfb25ad0 Possible fix for:
- #3382
- #3312
2024-04-09 14:02:36 +02:00
Frank
bf6932ecb7 ar_energy: reduced zeroCrossingCount magnitude by 1/3
zero crossing counter is often larger than in the prototype by @troyhacks - due to calculation after filtering (catches more crossings), and due to the fixed condition for detecting zero crossings (doubles the number of crossings).

This patch reduces the final value to 2/3, so it typically stays below 256.
2024-04-05 14:57:55 +02:00
Frank
e46b12f419 Merge pull request #125 from netmindz/ar-energy
Troy's zeroCrossingCount - counts zero crossings inside audioreactive, and makes the number availeable to other usermods and effects.
This PR is a prerequisite for PR #124 (auto playlist)
2024-04-05 08:23:58 +02:00
Frank
33b46b820f optimizations and bugfixing
* calculate zero crossings after filtering out DC offsets
* update effect variable only once
* fix a logic error when detecting zero crossings
* fix array bounds violation when creating umdata entries
2024-04-04 23:52:31 +02:00
Frank
4efdb2457e Merge branch 'mdev' into pr/125 2024-04-04 23:01:34 +02:00
Will Tatam
42df965088 Revert change to update 2024-04-03 19:02:22 +01:00
Will Tatam
ebab56ada5 Update logger 2024-03-29 13:39:09 +00:00
Will Tatam
d9dceb64ed Attempt at adding zeroCrossingCount to audio-sync 2024-03-28 20:06:47 +00:00
Will Tatam
9eabbf3789 Sync audio_rective changes from auto-playlist branch 2024-03-28 19:40:59 +00:00
Frank
1804a242b6 platformIO version bump
Trying to solve CI build errors

Tool Manager: Installing platformio/tool-scons @ ~4.40400.0 
Error: Could not find the package with 'platformio/tool-scons @ ~4.40400.0' requirements for your system 'linux_x86_64'
2024-03-23 22:51:40 +01:00
Will Tatam
d0fe87814e Disable HUB75 for V4_M builds due to space issues when building on windows 2024-03-09 14:07:33 +00:00
netmindz
1f4d5b8363 Merge pull request #108 from netmindz/ESP32-HUB75-MatrixPanel-DMA
Hub75 output
2024-03-09 13:44:22 +00:00
Will Tatam
9923a7a7d8 Swap to unsigned and pointers 2024-03-08 00:51:12 +00:00
Will Tatam
45d2ae7744 Clearer variable names 2024-03-07 19:21:03 +00:00
Will Tatam
77576f6858 Better range of speed for AnimARTrix 2024-03-06 22:41:23 +00:00
Will Tatam
fa5f35d87b Improve playlist generation with more user friendly QuickLoad names and also create playlist for AnimARTrix - if present 2024-03-06 21:29:35 +00:00
Will Tatam
ab89cd534d Start playlist at higher ID if needed due to more effects, from usermods 2024-03-06 18:56:21 +00:00
Will Tatam
6550504f60 Troy's extra data 2024-03-05 23:35:23 +00:00
Ewoud
65027331c7 Copyright and license updates 2024-03-04 21:27:01 +01:00
Will Tatam
f1a494f82d Cleanup comments 2024-02-26 22:47:33 +00:00
Will Tatam
2f87b616cd Default to mrfaptastic pinout 2024-02-26 21:27:27 +00:00
Will Tatam
68ca14a0ca Remove TODO 2024-02-25 22:06:45 +00:00
Will Tatam
69436a6f61 Merge branch 'mdev' into ESP32-HUB75-MatrixPanel-DMA 2024-02-25 21:34:47 +00:00
netmindz
e7bf24c15d Merge pull request #119 from netmindz/html-gen
generate wled00/html_*.h files
2024-02-25 21:33:07 +00:00
Will Tatam
fe482c6f90 Merge branch 'mdev' into html-gen 2024-02-25 21:24:53 +00:00
Will Tatam
a7ad79678b generate wled00/html_*.h files 2024-02-25 21:21:19 +00:00
Frank
1350a4111d Arc optimization: symmety at 45degress
If the segment is wider than 20 pixels, we optimize calculations due to symmetry - for smaller arcs the result looks better without optimization.

As a side-effect, we have enough computing power left to go through the complete circumference, avoiding holes.
2024-02-25 22:02:51 +01:00
Frank
9f5a75ffab build number up 2024-02-25 19:48:06 +01:00
Frank
8a0b97e0a8 ARC mapping optimization
The biggest optimization was to avoid sin_t / cos_t.
Now let's try to help the compiler optimize the drawing loop.
2024-02-25 19:46:53 +01:00
Frank
e0f08864a2 remove slow and inaccurate math from time critical code
as it turns out, the "_t" functions (from wled_math.cpp) are about 3 times (!!!) slower than the standard functions.

* mapping modes : Arc and Circle
* effects: 2D Drift, 2D Drift Rose
2024-02-25 19:36:29 +01:00
Will Tatam
43320a0eef pixel limit for hub75 2024-02-25 17:02:59 +00:00
Will Tatam
668a7577d4 pixel limit for hub75 2024-02-25 17:01:16 +00:00
Will Tatam
c463d5179d Set pixel limit by bus type 2024-02-25 17:00:41 +00:00
Frank
ff56cf0ee9 Pinwheel speed optimizations
* use "float" math only - sinf(), cosf(), roundf()
* use fewer "rays" for medium-sized matrix (<=32 pixels wide/high)
* ray drawing optimized to use fixed point

up to 80% faster on esp32 and esp32-S3; -S2/-C3 should also see benefits, as these do not have floating point support in hardware.
2024-02-25 18:00:19 +01:00
Will Tatam
3162579f8e reset default back 2024-02-25 16:16:03 +00:00
Will Tatam
b793bb33c7 Allow more pixels 2024-02-25 13:44:23 +00:00