Commit Graph

5113 Commits

Author SHA1 Message Date
Troy
d922374e92 Better change window tracking. 2024-03-27 10:48:55 -04:00
Troy
13bfe6018d Faster change_threshold catch-up 2024-03-26 08:13:56 -04:00
Troy
3279134a4b Tidy 2024-03-25 18:52:33 -04:00
Troy
793b1089ac Better debug 2024-03-25 14:42:12 -04:00
Troy
22be977df8 IfDefs to quiet some other debug lines during debugging. 2024-03-25 12:19:13 -04:00
Troy
cc01e38cad Comments added. 2024-03-25 12:15:31 -04:00
Troy
977002f30c better debug messages 2024-03-25 08:58:34 -04:00
Troy
b52773c1d3 comments and some temp removal of other debug 2024-03-25 08:27:12 -04:00
Troy
5ff44755d8 calculations based on normalized FFT results 2024-03-25 08:19:05 -04:00
Troy
901e4fa83e Better automatic change_intervals 2024-03-23 22:19:10 -04:00
Troy
9e9b014959 change_threshold pushback when window missing. 2024-03-23 18:22:44 -04:00
Troy
2fe86bde5d Feature complete... and better! 2024-03-23 17:41:34 -04:00
Troy
8d687b3a86 Debugging 2024-03-23 10:10:09 -04:00
Troy
734ba39399 Fixes. Auto is too animated. 2024-03-23 09:29:32 -04:00
Will Tatam
fd714e3e0f Remove buttton 2024-03-22 00:07:36 +00:00
Will Tatam
cfafa0d358 Auto disengage 2024-03-21 23:32:44 +00:00
Will Tatam
2fdd438d34 Disable AutoPlaylist if user makes manual change 2024-03-21 20:06:29 +00:00
Will Tatam
c4cb5af78c Disable auto-playlist if manual selection is made 2024-03-18 14:57:41 +00:00
Will Tatam
3ed5b89efc Skip if turned off 2024-03-14 20:16:23 +00:00
Will Tatam
c0f2f74755 Load presets from playlist 2024-03-14 20:14:40 +00:00
Will Tatam
1210923946 Merge branch 'ar-energy' into auto-playlist 2024-03-14 18:20:11 +00:00
Will Tatam
5c4c72d068 Do not auto-select preset if the lamp is off 2024-03-12 20:27:40 +00:00
Will Tatam
9923a7a7d8 Swap to unsigned and pointers 2024-03-08 00:51:12 +00:00
Will Tatam
95e94a99b9 Try to use existing FTT data 2024-03-08 00:35:22 +00:00
Will Tatam
995521bacb Merge branch 'ar-energy' into auto-playlist 2024-03-07 20:00:08 +00:00
Will Tatam
45d2ae7744 Clearer variable names 2024-03-07 19:21:03 +00:00
Will Tatam
265339cc3f Trying to add enable button to info panel 2024-03-06 18:38:27 +00:00
Will Tatam
a8661b5125 Set autochange in correct state 2024-03-06 10:43:16 +00:00
Will Tatam
730714b0d6 Add TroyHacks auto change 2024-03-06 10:10:16 +00:00
Will Tatam
6b194ef33d Merge branch 'ar-energy' into auto-playlist 2024-03-05 23:35:54 +00:00
Will Tatam
6550504f60 Troy's extra data 2024-03-05 23:35:23 +00:00
Will Tatam
43e5a12b1d name 2024-03-05 21:23:19 +00:00
Will Tatam
4f9675bf9f add preferences 2024-03-05 21:14:45 +00:00
Will Tatam
b161179636 add preferences 2024-03-05 21:05:05 +00:00
Will Tatam
993b123c8e Basic usermod for detecting silence 2024-03-05 19:41:19 +00:00
Ewoud
65027331c7 Copyright and license updates 2024-03-04 21:27:01 +01: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
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
Ewoud
d9e2fc9a99 appendGPIOinfo NUM_DIGITAL_PINS fix 2024-02-25 11:01:03 +01:00
Frank
96d275e2b9 minor optimization for PinWheel mapping
use "float" math functions. These are slightly faster. By avoiding to pull in "double" math we also save some flash space.
2024-02-23 12:34:14 +01:00
Frank
07b770958f revert changes to wled_server.cpp (requestJSONBufferLock(14) error)
I've had strange UI errors after this change, so cowardly taking it back..
2024-02-23 12:01:33 +01:00
Frank
c8e181f3b1 overlooked one 2024-02-23 11:19:17 +01:00
Frank
c7b52f96fb npm run build 2024-02-23 11:03:11 +01:00
Will Miles
5117a72e52 LockedJsonResponse: Release early if possible
Release the json buffer lock as soon as we've finished serializing.
This should slightly reduce the number of lock collisions as the
response class isn't destructed until after the last packet is ack'd.
2024-02-23 10:58:58 +01:00