PaoloTK
fa82e759bd
bug fix
2024-09-12 18:27:51 +02:00
PaoloTK
daf0bcfac3
bug fix on pin already defined check
2024-09-12 18:12:38 +02:00
Damian Schneider
09428dcade
inlined getMappedPixelIndex, improved color_add, bugfix in colorFromPalette
...
inlining getMappedPixelIndex gets rid of function entry instructions (hopefully) so it should be faster.
also added the 'multi color math' trick to color_add function (it will not make much difference but code shrinks by a few bytes)
2024-09-12 16:34:55 +02:00
Blaz Kristan
ec7f69d559
Merge branch '0_15' into bus-config
2024-09-12 15:22:56 +02:00
Blaz Kristan
a8c5bf2573
Ease IRAM
2024-09-12 15:22:37 +02:00
Blaž Kristan
5b8d9d1510
Merge branch '0_15' into bus-config
2024-09-12 08:49:04 +02:00
Damian Schneider
992d11be10
Improvements in get/set PixelColor()
...
-calculations for virtual strips are done on each call, which is unnecessary. moved them into the if statement.
2024-09-12 08:28:30 +02:00
Blaz Kristan
eae5a74a11
color_fade bugfix
...
impure void remove
optimisations: hot
2024-09-11 17:14:59 +02:00
PaoloTK
5869627b32
- More optimization on bus configuration logic.
...
- Renamed LEDPIN to DEFAULT_LED_PIN.
- Removed ability to override DEFAULT_LED_PIN, DEFAULT_LED_TYPE and DEFAULT_LED_COUNT. Use DATA_PINS, LED_TYPES and PIXEL_COUNTS instead.
2024-09-11 01:27:19 +02:00
PaoloTK
eb06e575c2
add check for pin reassigned conflict with pin defined for current bus
2024-09-10 01:03:19 +02:00
Frank
ef80abd885
8266 compatibility builds for older chips (another attempt t o solve #3690 and #3685 )
...
some users have reported that releases after 0.14.0 are not working reliably. So we add a few "compat" for 8266 that try to reproduce the buildenv of 0.14.0 as much as possible.
* platform and platform_packages from 0.14.0
* not using PIO_FRAMEWORK_ARDUINO_MMU_CACHE16_IRAM48
* due to smaller IRAM, we had to move some functions back from IRAM to normal flash (may cause slowdown)
2024-09-04 23:42:58 +02:00
PaoloTK
329173e145
added complete validation logic for pins and types
2024-09-04 13:28:43 +02:00
PaoloTK
8e4f8fcbc8
fix bug in reassignment logic
2024-09-04 13:27:04 +02:00
Frank
c1c707c77a
8266 compatibility builds for older chips (another attempt t o solve #3690 and #3685 )
...
some users have reported that releases after 0.14.0 are not working reliably. So we add a few "compat" for 8266 that try to reproduce the buildenv of 0.14.0 as much as possible.
* platform and platform_packages from 0.14.0
* not using PIO_FRAMEWORK_ARDUINO_MMU_CACHE16_IRAM48
* due to smaller IRAM, we had to move some functions back from IRAM to normal flash (may cause slowdown)
2024-09-04 11:38:03 +02:00
PaoloTK
fcc344ba99
add read/only pin logic and check
2024-09-01 21:31:19 +02:00
PaoloTK
6655e2664e
rebase to bus-config
2024-08-29 13:18:48 +02:00
Blaz Kristan
dbb47d506c
Bus manager rework
...
- move macros to constexpr methods
- introduce type capabilities for UI
- add phase shifting (POC) to PWM
- replace PWM CIE LUT with calculated curve
CIE & phase shifting credit @dedehai
2024-08-24 11:35:32 +02:00
Blaz Kristan
f6c47ac19c
Fix some compiler warnings
2024-08-18 10:45:16 +02:00
Blaz Kristan
8d00e4d31d
Save some tiny amounts of RAM
...
- use `-D WLED_SAVE_RAM`
2024-08-17 15:09:41 +02:00
Blaz Kristan
9940d2590b
Arc expansion getPixelColor fix.
2024-08-15 17:22:59 +02:00
Blaz Kristan
cec67d8eff
Const and 2D box blur
...
- added 2D blur
2024-08-14 22:15:48 +02:00
Blaz Kristan
e82f38e277
Tuning
2024-08-05 16:42:21 +02:00
Blaz Kristan
cd1ede38a7
Size & speed optimisations
2024-07-11 21:22:58 +02:00
Blaz Kristan
0ff4016250
WLED 0.15.0-b4 release
...
- LED settings update (limit to available outputs)
- minor fixes
2024-06-29 20:22:47 +02:00
Blaz Kristan
e753f3849e
Revert "WLED 0.15.0-b4 release"
...
Messed FX_fcn.cpp CRLF conversion
2024-06-29 20:18:30 +02:00
Blaz Kristan
7b248c8fb2
WLED 0.15.0-b4 release
...
- LED settings update (limit to available outputs)
- minor fixes
2024-06-29 16:36:27 +02:00
Blaz Kristan
0af3063127
Enhancements
...
- edit WiFi TX power (ESP32)
- keep current ledmap ID in UI
- limit outputs in UI based on length
- wifi.ap addition to JSON Info
- relay pin init bugfix
- file editor button in UI
2024-06-23 14:08:18 +02:00
Blaz Kristan
f4475b9d2a
Dynamic parallel I2S output
...
- update NeoPixelBus to v2.8.0
- use single/mono I2S + 4x RMT for 5 outputs or less
- use parallel x8 I2S + 8x RMT for >5 outputs (limit of 300 LEDs per output)
2024-06-12 18:00:00 +02:00
Blaz Kristan
13bfda56ef
Auto segment creation bugfix
...
- additional debug
- minor optimisation
2024-05-18 11:11:40 +02:00
Blaz Kristan
2aec21a6d0
Palette loading optimisation
...
- fixes #3978
- FX: Firenoise can use selected palette
2024-05-16 06:23:15 +02:00
Blaz Kristan
77e6ea8a6f
Palette loading optimisation
...
- fixes #3978
- FX: Firenoise can use selected palette
2024-05-15 15:34:53 +02:00
Brandon502
3cb6b17316
Pinwheel fix
2024-05-14 11:46:52 -04:00
Brandon502
c0cb677a4c
Pinwheel cleanup
2024-05-14 11:30:33 -04:00
Frank
a5a6a8eaee
pinwheel : fix holes on large matrix, minor code cleanup
...
there were still two holes in my 52x52 setup --> added "XL" size for bigger than 50x50 - achieves 18fps on 52x52
2024-05-14 11:30:25 +02:00
Frank
ecb861de56
pinwheel code cleanup
...
reducing code duplication between sPC and gPC
2024-05-14 10:36:50 +02:00
Brandon502
1d20f18d3f
Pinwheel bugfix
...
Fixed getPixelColor.
2024-05-13 17:43:31 -04:00
Frank
1d7789f544
pinwheel bugfixing
...
* setPixelColor: ensure that 0/0 is used
* getPixelColor: accuracy improvements
unfortunately, "scrolling" audioreactive effects are still not working properly - they end after 1/4 of the circle. Could be due to limited resolution of getPixelColor.
2024-05-13 19:27:41 +02:00
Brandon502
2e1e917952
Merge branch '0_15' of https://github.com/Brandon502/WLED into 0_15
2024-05-12 17:46:52 -04:00
Brandon502
9e0b91ac17
Pinwheel changes.
...
Jump distance for odd rays fixed. Removed holes on rectangular matrices.
2024-05-12 17:46:42 -04:00
Frank
ea83ec496b
pinwheel - parameter tuning to fix some holes
...
fixing holes that appeared during testing
* at 52x52 (big 296 -> 304)
* at 24x32 (medium 192 -> 208)
* at 12x16 (small 72 -> 82)
... there is still one hole at 14x16 ... well wtf
2024-05-12 23:05:58 +02:00
Frank
f26bb26ffa
Update FX_fcn.cpp
...
* minor cleanup, moved prevRay into setPixelColor
* removed experimental code (too slow)
* comments cleanup
2024-05-12 22:35:33 +02:00
Brandon502
c84d4c637d
Pinwheel Expand 1D Optimization
...
Changed method for drawing odd numbered rays.
2024-05-12 11:52:31 -04:00
Frank
3078bea7cc
Pinwheel optimization: do nor repaint "same" pixels in a line
...
avoids back to back duplicates within the same line
2024-05-12 13:29:04 +02:00
Brandon502
9e468bd059
Pinwheel Expand 1D Optimizations
...
Added small pinwheel size. Adjusts medium and large values.
2024-05-11 13:57:21 -04:00
Brandon502
d3492b5b6c
Pinwheel Expand 1D Bug Fix
...
Removed holes on 31x31 and 32x32 grids.
2024-05-10 16:06:37 -04:00
Brandon502
6a18ce078e
Pinwheel Expand1D changes
...
cosf/sinf changed to cos_t/sin_t. int_fast32_t and int_fast_16_t changed to int.
2024-05-09 20:38:41 -04:00
Brandon502
da79b93387
Added Pinwheel Expand 1D Effect
2024-05-07 18:04:29 -04:00
Blaz Kristan
d48bab02a1
Speed & size optimisations using native sized variables
2024-04-26 20:11:46 +02:00
Blaz Kristan
674481f0d1
Multiple fixes
...
- several compile warning fixes
- multipin LED compile config
- release info (update page, JSON "info")
- WiFi scan fix if no networks found
- UI glitch when no presets are found fix
With multipin LED config it is now possible to assign GPIO to PWM RGB outputs.
Achieved by having length of DATA_PINS be divisble by lengt of PIXEL_COUNTS.
2024-04-23 19:05:49 +02:00
Blaž Kristan
127ea7e351
Fix for #3926
2024-04-23 13:04:17 +02:00
Damian Schneider
084fc2fcd1
bugfix & code formatting, removed color_scale
...
also replaced scale8_video with 32bit calculation in color_fade for consistency and speed.
2024-04-16 10:43:06 +02:00
Damian Schneider
459156fe57
added improvements to color scaling and blurring
...
-changes save roughly 600bytes of flash
-made blurring faster by not writing the color and then reading it back but keeping it as a variable: on a C3, FX black hole goes from 55FPS to 71FPS
-added optional parameter to blur (smear) that can be used in combination with SEGMENT.clear(), blurring the frame without dimming the current frame (repeated calls without clearing will result in white). this is useful to blur without 'motion blurring' being added
-scale8 is inlined and repeated calls uses flash, plus it is slower than native 32bit, so I added 'color_scale' function which is native 32bit and scales 32bit colors (RGBW).
2024-04-15 21:20:45 +02:00
Blaz Kristan
94cdd88474
Version bump B3
...
- fix for #3896
- fix WS2815 current
- conditional AA setPixelColor()
2024-04-13 18:25:25 +02:00
Blaz Kristan
58e8346209
Fix for #3889
2024-04-09 08:25:07 +02:00
Blaž Kristan
1cafa0b33f
Merge pull request #3880 from DedeHai/harmonic-random-palette-generator
...
Added fix for #3870
2024-04-07 22:03:59 +02:00
Damian Schneider
18c17168e1
replaced &0xFFFF with explicit casts
2024-04-07 16:07:37 +02:00
Damian Schneider
503c68320a
Bugfix: millis rollover (fix for #3870 )
...
millis()/1000 rollover after 18h was not handled, truncating to 16bits after division fixes it.
2024-04-05 07:23:28 +02:00
Blaz Kristan
f21ab3588d
Individual color channel control for JSON API
...
- fixes #3860
- debug verbose
- PSRAM detection
2024-03-29 16:43:37 +01:00
Blaz Kristan
47f44680a3
Multi-update
...
- 0.15.0-b2
- WS2805 support (NeoPixelBus 2.7.9)
- generic PSRAM support (ESP32 rev.1 still needs compile fix)
- BREAKING: default LEDPIN 2 (due to PSRAM)
- PinManager optimisations
2024-03-24 17:37:11 +01:00
Blaz Kristan
7a9eff7f35
Fix.
2024-03-18 20:23:30 +01:00
Blaz Kristan
0dcb56eab5
Modify Bus & BusManager to accommodate digital CCT
...
- additional fix in hasWhite() & setCCT() & hasCCT()
2024-03-16 12:36:05 +01:00
Blaz Kristan
989bdfb0d5
Reduce string RAM usage for ESP8266 debug builds
2024-02-17 11:33:42 +01:00
Blaz Kristan
7eae8f68d8
Merge branch 'main' into 0_15
2024-02-06 14:47:20 +01:00
Blaz Kristan
41e51bbeb5
Configuration item for harmonic palettes
...
Comment cleanup
2024-02-06 11:06:23 +01:00
Damian Schneider
ca05aa84ff
changed randomness and added optimizations
...
-added fully random palette function ('the old way', currently just used for initialization)
-changed randomness values to make it a little less random
-added 10% chance for pastel color palette
-now using swap() from std library for shuffeling
-changed function name
-moved update check from loadPalette() to handleRandomPalette() saving CPU cycles
2024-01-30 22:28:40 +01:00
Damian Schneider
ef6fe43251
random palette transitions with set transition time
2024-01-29 22:14:26 +01:00
Damian Schneider
f5ed757780
added some minor fixes
...
-fastled flags
-gamma correction
-pass by reference instead of pointer
2024-01-29 20:47:09 +01:00
Damian Schneider
e114b842ba
fixed initialisation or random palette
2024-01-29 20:47:08 +01:00
Damian Schneider
12e2116acb
bugfix, need to initialize the random palette to something useful
2024-01-29 20:47:08 +01:00
Damian Schneider
bccc97d25f
fixed include, bugfix in random palette handling
2024-01-29 20:47:08 +01:00
Damian Schneider
a9bcc75733
added function to generate random palette based on harmonic color theory
2024-01-29 20:47:08 +01:00
Blaz Kristan
7b87475af8
Fix random palette transitions.
2024-01-29 19:06:41 +01:00
Blaz Kristan
445a89ba6e
Try hard to release memory
2024-01-24 20:49:22 +01:00
Blaz Kristan
8868ecd11a
Cleanup 2
2024-01-22 20:48:03 +01:00
Blaz Kristan
bab42014a4
Fix for #3693
2024-01-16 19:35:18 +01:00
Blaz Kristan
74fed5695f
Fix for #3693
2024-01-16 19:34:23 +01:00
ezcGman
ff59dcd66e
Merge branch '0_15' of https://github.com/Aircoookie/WLED into ledmaps-realtime
2024-01-10 05:11:44 +01:00
Blaz Kristan
f070dc5527
Cosmetic & needsUpdate()
2024-01-04 17:40:23 +01:00
Blaz Kristan
fc6e7c81d3
Merge branch '0_15' into suspend
2024-01-04 17:33:07 +01:00
Blaž Kristan
301bdf2186
Merge pull request #3610 from Aircoookie/psram-4-json
...
Allow PSRAM (SPI RAM) to be used for JSON buffer
2023-12-30 11:00:53 +01:00
Blaz Kristan
1c1b67e000
Full per-port ABL implementation and bugfix.
...
Update of BusManager class (static)
2023-12-29 23:07:29 +01:00
Blaz Kristan
bc85520f5e
Merge branch '0_15' into suspend
2023-12-28 23:38:42 +01:00
Blaz Kristan
d3be7a3edf
Merge branch '0_15' into psram-4-json
2023-12-28 23:38:27 +01:00
Blaz Kristan
6cd0da821a
Reduce heap fragmentation when switching ledmaps
2023-12-28 23:32:47 +01:00
Blaz Kristan
6332ee6edb
Effect buffer optimisations
...
setMode() fix for selecting gap
UI error messages
2023-12-27 19:36:25 +01:00
Blaz Kristan
5ebc345e95
Possible bugfix for #3609 #3616
2023-12-25 17:47:39 +01:00
Blaz Kristan
cf3f6ede72
Suspend strip during operations
2023-12-22 15:39:07 +01:00
ezcGman
b76a90304d
Merge branch '0_15' of https://github.com/Aircoookie/WLED into ledmaps-realtime
2023-12-22 13:19:44 +01:00
Blaz Kristan
1f81fb9284
Implement JSON buffer in PSRAM to free up DRAM.
2023-12-21 21:30:17 +01:00
Blaz Kristan
3d6fe0a565
Reduce memory fragmentation
2023-12-16 12:38:15 +01:00
Frank
f513cae66e
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 03:49:54 +01:00
Blaz Kristan
7275a34e1f
Partial fix for #3578
2023-12-09 22:39:26 +01:00
ezcGman
d00df785a5
Merge branch '0_15' of https://github.com/Aircoookie/WLED into ledmaps-realtime
2023-12-06 21:41:34 +01:00
Blaz Kristan
c0412d368e
SEGLEN bugfix if default map1D2D not defined
...
- comments
2023-12-02 00:48:49 +01:00
Blaz Kristan
7c108e5128
Bugfix for SEGENV if defult map1D2D not defined
2023-12-02 00:44:30 +01:00
ezcGman
2e5a485804
Realtime LED Maps: Feedback applied
2023-11-29 20:12:31 +01:00
ezcGman
9dc459192e
Merge branch '0_15' of https://github.com/Aircoookie/WLED into ledmaps-realtime
2023-11-28 11:49:53 +01:00
ezcGman
a36c731d15
En-/disable LED maps when receiving realtime data
2023-11-23 17:13:13 +01:00
Blaz Kristan
8f7f9ec367
Feature: Per-port ABL
2023-11-15 19:37:07 +01:00
Blaz Kristan
1852c0a88c
Merge branch '0_15' into spookierEyes
2023-11-12 12:49:02 +01:00