Commit Graph

541 Commits

Author SHA1 Message Date
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
Titanium177
8b25e78a7c Edited Metadata for effect 5 & 8 to be availible on just 1 Pixel (PWM) (#3275) 2023-07-28 20:53:40 +02:00
Frank
d899192794 2D Drift: minor optimization
moving "t/20" out of the main loop gives some speedup.
2023-07-28 20:46:39 +02:00
Frank
9b7f690708 Minor correction (slider names)
"Time delay" is actually "speed" - bigger values make the effect run faster.
2023-07-28 20:46:39 +02:00
Frank
27d4128e2c lossless getPixelColor() where needed
after upstream PR https://github.com/Aircoookie/WLED/pull/3091, getPixelColor() does not restore brightness any more.

So all effects that rely on previous colors now need the LEDs buffer: getPixelColor, blenPixelColor, fade_out, blur, fadeToBlackBy

This change is an intermediate solution until upstream PR https://github.com/Aircoookie/WLED/pull/3280 is stable enough for merging.
2023-07-27 16:24:42 +02:00
Frank
03de8ac0ad ripple effects: bugfix for 1D
ripple effects were showing random crashes in 1D mode.
Root cause: negative and out-of-range index passed to getPixelColor(i, col).
2023-07-26 13:03:58 +02:00
Frank
9a3a97eff1 pre-merge
cleanup:
- version increase
- clean up debug messages
- minor fixes in platformio.ini
- fix compilation with -D WLED_DISABLE_2D

helping the compiler to optimize:
- a few more __attribute__((pure))
- fx.cpp marked a few local functions as "static"
2023-07-13 19:58:48 +02:00
Frank
5fe12eef5a Merge branch 'mdev' into audio_fastpath 2023-07-08 19:23:36 +02:00
Frank
72b79608bf 2DPlasmaball - optimize out float 2023-07-08 19:13:20 +02:00
Frank
51a23bd62c parameter tuning
minor tweaks.
2023-06-19 11:16:35 +02:00
Frank
8aef4347a1 re-enable old peak detect algo, plus ripplepeak bugfix
* re-enabled old detector which does not detect beats. However something bad may still be better than nothing...

* fixed a typo in RipplePeak and Waterfall effect, which cased wrong configuration of the peak detector.

resolves https://github.com/MoonModules/WLED/issues/43
2023-06-18 22:08:55 +02:00
Frank
e0cb636706 re-enable old peak detect algo, plus ripplepeak bugfix
* re-enabled old detector which does not detect beats. However something bad may still be better than nothing...

* fixed a typo in RipplePeak and Waterfall effect, which cased wrong configuration of the peak detector.

resolves https://github.com/MoonModules/WLED/issues/43
2023-06-18 21:55:51 +02:00
Frank
3127c60b41 Merge branch 'mdev' into audio_fastpath 2023-06-15 20:54:57 +02:00
Frank
b53f9ac4b0 2d Lissajous: make fade-out work
"Fade rate" slider works now.
2023-06-14 22:04:32 +02:00