Commit Graph

554 Commits

Author SHA1 Message Date
Frank
a5b07bc06d bugfix for 2D Polar Lights
on large setups (bigger than 32x32) the effect would only show a small horizontal line.
2024-04-18 22:36:50 +02:00
Frank
93b8c63e2b post PR3904 fixes and improvements
* fix compiler warnings (uninitialized vars, ambiguous  functions calls)
* restore some lost function prototypes
* avoid negative pixel indices
* only use "fast" color_add when there is no risk of  "overshooting" results
* minor optimizations
2024-04-18 21:09:14 +02:00
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
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
Blaž Kristan
ad6903de38 Merge pull request #3723 from Derek4aty1/dnaSpiralFix
DNA Spiral Effect Speed Fix
2024-01-26 12:08:40 +01:00
Frank
42c3243136 effect metadata 2024-01-03 17:01:44 +01:00
Frank
8e996b0b46 parameter tuning 2023-12-31 01:21:57 +01:00
Frank
4b89016c2d audio-enhanced standard effects
backported from WLED-SR
2023-12-31 00:01:29 +01:00
Frank
8905992a89 code spell checking - part4 (MM specific) 2023-12-15 00:14:57 +01:00
Frank
ced03f1f08 code spell checking - part1 (core)
I've found a code spellchecker, so this is what can be corrected easily. Changes are only affecting comments, readme and a few user-visible strings. So no functional impact expected.
2023-12-14 22:05:55 +01:00
Blaz Kristan
88f67cbd24 FX:
- Matrix bugfix
- Lissajous metadata fix
2023-12-12 15:28:39 +01:00
Blaz Kristan
fa6e2175fe Remove re-seeding FastLED random8/random16 in FX 2023-12-12 15:21:34 +01:00
Blaž Kristan
451243c78d Merge pull request #3552 from TripleWhy/seedRandom16
Seed FastLED's RNG
2023-12-12 15:21:00 +01:00
Blaz Kristan
cc760e98a0 Fix for #3514 2023-12-12 14:46:40 +01:00
Frank
e4cb0929c3 PartyJerk: minor code style improvements
* fix some too-long tabs
*author info added
* shrunk number of blank lines
* removed unused audio variables
* colorIndex : better accuracy by first doing multiply, then divide
2023-12-10 16:49:13 +01:00
tonyxforce
21f925eab2 Merge branch 'MoonModules:mdev' into mdev 2023-11-14 23:07:39 +01:00
Blaz Kristan
7debd508c8 Twinklefox & Twinklecat fix 2023-11-11 23:15:38 +01:00
knarfd
3f945753c2 Update FX.cpp 2023-11-11 23:02:32 +01:00
Ewoud
294a872462 json/info: brand and product configurable by compile variables
For MM builds brand = WLEDMM
Will be used in WLED-Native - by Moustachauve

Changed in bh1750, bme280, pir, json.cpp and wled.h
2023-10-15 21:43:55 +02:00
Frank
6d9af29042 Polar Lights minor speedup
* perform some calculations outside of the main loop.
* move "mapf" to the top of fx.cpp
2023-10-10 22:06:04 +02:00
Ewoud
71abd117b5 PolarLights and Octopus: deterministic + SuperSync control
FX.cpp
- SuperSync control on Polar lights and Octopus:  only calculate pixels for the first panel
2023-10-08 19:02:32 +02:00
Ewoud
b07562659f SuperSync small updates 2023-10-08 17:09:57 +02:00
Frank
77cef80417 Merge pull request #73 from arneboe/fix_static_effect_timing
Fix return value (frameDelay) of FX_MODE_STATIC
2023-10-07 16:24:10 +02:00
Frank
0ec54c4911 WLEDMM specific improvement
WLEDMM has FRAMETIME_FIXED_SLOW which seems perfect for this usecase.
2023-10-07 16:23:15 +02:00
Blaz Kristan
ecb2f48c32 FX update
- Meteor: trail & 0.13 behaviour
- Meteor Smooth: train & 0.13 behaviour
- Scrolling Text: rotation
2023-10-06 17:30:02 +02:00
Blaz Kristan
7e21003f07 Fix for #3405 2023-10-06 17:00:10 +02:00
Ewoud
cea994c282 Deterministic mode of effects only when SuperSync is on
Temporary - to compare both modes

Octopus
Soap
CrazyBees
2023-10-04 11:56:00 +02:00
Ewoud
76aa3072b6 Octopus and Crazy Bees Super Sync compatible 2023-10-02 12:45:56 +02:00
Ewoud
37e1624729 Make Soap effect Super Sync compatible 2023-10-01 21:13:16 +02:00
Ewoud
342f99ca27 Effects to Instances: effects non-deterministic: now instead of millis
index.js
- genPresets: Temporary for deterministic effects test: Set to 11/Raibow instead of 1/Random smooth palette

FX.cpp
- replace all millis() by strip.now
2023-09-30 12:23:53 +02:00
Arne
18c62734be Increase update time of static effect to avoid lag 2023-09-24 17:20:59 +02:00
Frank
a79243135a Matrix effect speedup
Typically, more than 50% of pixels are black. 
This optimization avoids to fade and rewrite already black pixels.
2023-09-18 16:04:17 +02:00
Frank
598e0bc061 matrix: fix for a corner case (e.g. gapmaps)
workaround for a corner case; if the reference pixels falls into a "gap" then gPC returns BLACK. Solutions is to reject BLACK.
2023-09-18 15:36:34 +02:00
Frank
f1d4bf2729 bugfix for #3375
* improves robustness of the Matrix effect, by dynamically adjusting the "reference color" used to identify "falling code" head pixels.
* a bit faster, as I've removed the need to scan all pixels a second time for "black screen" detection.

Its still not perfect, and the main loop could be simplified a lot by leveraging on the fact that all changes actually happen in the top row, and "falling" is actually just moving everything down by one pixel.
2023-09-18 15:09:58 +02:00
Frank
fd15047220 Squashed commit of the following:
commit 84148ad07a7ac94993dc9dfd0bdc6d7a8d9e47ac
Author: Blaz Kristan <blaz@kristan-sp.si>
Date:   Sun Sep 3 12:34:17 2023 +0200

    Implement palette colors

commit af3c8f66f7e77dd6306ceadf2cea26a41336e439
Author: Blaz Kristan <blaz@kristan-sp.si>
Date:   Tue Aug 1 18:18:41 2023 +0200

    revert wled00.ino

commit 3097a1b17efa06b78d52611b3a9d3c519a15ed17
Author: Blaz Kristan <blaz@kristan-sp.si>
Date:   Tue Aug 1 18:13:37 2023 +0200

    minor aesthetic fixes

commit 54b80f74b2dc8766951d55438c6bc560b33e505b
Author: Blaz Kristan <blaz@kristan-sp.si>
Date:   Tue Aug 1 18:09:32 2023 +0200

    remove unused variable

commit 9a78d28cd71da998cdd76ba826946f54ee2044bd
Merge: 56a74bc5 1ed81793
Author: Blaz Kristan <blaz@kristan-sp.si>
Date:   Tue Aug 1 18:08:29 2023 +0200

    Merge branch 'main' into PJH_ADD_Linearbounce

commit 56a74bc54c5bbf189b1f98c6cd216956b4f6bd6c
Author: pjhatch <66844564+pjhatch@users.noreply.github.com>
Date:   Sat Aug 15 12:34:13 2020 -0500

    Update FX.cpp

    Added the improvements suggested by Gregor Hartmann

commit a20358b61bf0c38356438c87e5c59663524e038e
Author: pjhatch <66844564+pjhatch@users.noreply.github.com>
Date:   Sun Jul 12 08:33:48 2020 -0500

    Adding 2 ball track modes

    With and without collisions

commit 341d9d1697e9af4fdf2fbd5b4c1de935d0b5a229
Author: pjhatch <66844564+pjhatch@users.noreply.github.com>
Date:   Sun Jul 5 14:55:14 2020 -0500

    Update FX.cpp

    Still 1 bug to fix - this was a test.

commit 9cee4243837f35431302814cc7ace13a72ab5fed
Author: pjhatch <66844564+pjhatch@users.noreply.github.com>
Date:   Sun Jul 5 14:53:14 2020 -0500

    Update FX.cpp

commit 37cb51cfd6991f6041d663de72debfdcf349c1da
Author: pjhatch <66844564+pjhatch@users.noreply.github.com>
Date:   Thu Jul 2 14:16:25 2020 -0500

    Adding Collision

    A couple of bugs still need sorting

commit 84b7bfb989e662e37a47d78e381105b3951311a6
Author: pjhatch <66844564+pjhatch@users.noreply.github.com>
Date:   Sun Jun 28 19:59:46 2020 -0500

    update for lost balls

    Added some protection - so that when intensity is lowered and raised some time later balls that have moved way off the track are recovered.

commit 04d17e483956b74754002da4cb4dfcddaf932f7b
Author: pjhatch <66844564+pjhatch@users.noreply.github.com>
Date:   Sun Jun 28 19:43:56 2020 -0500

    Added Ball Track V1

    In this version the balls bounce of the edges and do not interact with one another.
2023-09-17 19:19:37 +02:00
Frank
51999b65ad Merge pull request #3373 from Aircoookie/ripple-tweak
2D Ripple and Meteor effect tweak
2023-09-17 19:13:49 +02:00
tonyxforce
c07a8ae263 Fixed possible naming legal issues 2023-08-25 20:26:16 +02:00
tonyxforce
e5ca80c035 Bias value changes 2023-08-25 01:18:05 +02:00
tonyxforce
6a37f81465 Renamed the effect, biased the sliders, so it
looks best with all sliders in the middle,
added option to change the effect speed multiplier
2023-08-25 01:03:40 +02:00
tonyxforce
350e20544d Fixing effect speed issues 2023-08-25 00:04:05 +02:00
tonyxforce
7f0191bd11 Minor code modifications/clean up 2023-08-24 23:47:57 +02:00
tonyxforce
1d61351903 Code improvement changes 2023-08-24 20:19:41 +02:00
tonyxforce
d64b6b3511 fixed slider names 2023-08-23 21:46:35 +02:00
tonyxforce
05f5237971 modified: wled00/FX.cpp 2023-08-23 21:37:35 +02:00
tonyxforce
7fe0123c63 modified: wled00/FX.cpp
modified:   wled00/FX.h
2023-08-23 18:13:15 +02:00
Frank
92e64b797a 8266 hotfix: solving connectivity problems
* it seems that `WiFiUDP.flsuh()` does something completely different from 8266, and  its actually causing WLED to stall on UI calls. So not usable on 8266.
* fixing a few compiler warnings about "comparing signed and unsigned"

NB: its a hotfix, we have to check if there are other problems on 8266. Also its definitely ugly, but it helps as a band aid.
2023-08-22 22:55:05 +02:00
Frank
7002420a0c effects bugfix: prevent crash when SEGLEN==1
* Blurz and a few other effects would crash (or behave unexpectedly) for single pixel segments
* replaced a few "MAX" by "max", because MAX will evaluate its arguments twice so its very inefficient.
2023-08-05 23:29:23 +02:00
Frank
704906472b (part2) lossless getPixelColor() where needed
more places where setUpLeds() is needed now.
2023-07-30 19:28:58 +02:00
Frank
67491d91c9 freqMap effect enhancements 2023-07-29 23:57:47 +02:00
Frank
be6f6412d6 effect parameter tinkering
* freqmap: fade faster
* Lissajous HD mode: color follows rotation
2023-07-29 23:00:27 +02:00