Ewoud
930d79f4e8
Merge remote-tracking branch 'upstream/main' into mdev
2023-01-02 21:23:23 +01:00
Ewoud
4409ceb3ec
Merge remote-tracking branch 'origin/ac_main' into mdev
2023-01-02 21:05:03 +01:00
Caleb Marting
187ecf511f
2d Mapping with Matrix Gaps ( #2892 )
...
* New 2d mapping
* panel matrix generator
* add todos, fix vert/horz swap
* Fix 2d mapping to matrix in settings 2D
* add correct index mapping to pixels per panel
* fix panel bug in led layout
* formatting and change max panels
* add per panel width and height
* fix using length instead of custom mapping size
* fix: panel dimensions location
* panel[] implemented as a vector.
Removed matrixWidth & matrixHeight.
Panel structure update.
* Fixes.
Co-authored-by: Blaz Kristan <blaz@kristan-sp.si >
2023-01-02 20:56:00 +01:00
Blaz Kristan
474e86306f
Bugfix: incorrect maxWidth after switching from 2D
2022-12-24 22:00:35 +01:00
Blaz Kristan
22b2503839
Bugfix & code optimisation.
2022-12-22 18:13:32 +01:00
Ewoud
3139f5228d
Merge remote-tracking branch 'origin/ac_main' into mdev
2022-12-19 14:00:52 +01:00
Blaz Kristan
3c5838cafd
Remove "strip" dependency in Segment class
2022-12-16 22:31:07 +01:00
Ewoud
fc4170292a
Very small updates
2022-11-30 19:53:10 +01:00
Ewoud
91c2ce0d8f
Merge remote-tracking branch 'origin/ac_main' into mdev
2022-11-28 19:58:51 +01:00
Blaz Kristan
b6db86da50
Allow matrix bigger than LED count (missing panels)
2022-11-23 16:54:32 +01:00
Ewoud
f1088a6ed7
Reinstate ledmap on 2D
...
FX.h / FX_2Dfcn.cpp:
- setUpMatrix with reset option (create 1:1 matrix) and customMappingTable[customMappingTable[x]]
FX_fcn.cpp:
- deserializeMap: also for 2D, use setUpMatrix
2022-11-22 10:00:53 +01:00
Ewoud
c3c3ff39b5
Change WLEDSR to WLEDMM in comments
2022-11-09 12:14:42 +01:00
Ewoud
46ee25b46b
Platformio: further refactoring and bug fixing
...
platformio:
- min and max as postfix instead of prefix
- add common_mm entry for MM build_flags and lib_deps
- add esp32_4MB_V4_max_base entry for V4
const.h and FX_(2D)fcn.cpp: add IRAM_ATTR_YN to switch off if not esp32 (esp8266 not enough iram for this)
json.cpp: start stop compatibility only if 2D not disabled
2022-11-01 18:18:03 +01:00
Ewowi
4922c42b25
Merge remote-tracking branch 'origin/dev' into mdev
2022-09-10 14:21:36 +02:00
Blaz Kristan
c9fd69ceb7
Preset loading tuning.
...
Multi-relay toggle support.
Fire2012 tuning.
2D functions tuning.
Global SPI comments & tuning.
Bugfix in 4LD usermod.
2022-09-09 17:21:13 +02:00
Blaz Kristan
e4fbf70568
Preset loading tuning.
...
Multi-relay toggle support.
Fire2012 tuning.
2D functions tuning.
Global SPI comments & tuning.
Bugfix in 4LD usermod.
On & bri support fix.
2022-09-09 17:16:52 +02:00
Ewowi
1b724dbc0b
Merge branch 'json-mapping' into mdev
2022-09-06 17:44:25 +02:00
cschwinne
a0c90d4ba3
Disable unused characters in fonts
...
saves 5kB flash
Added 4x6 font
2022-09-05 03:18:59 +02:00
Ewowi
5b8ad8d714
Merge branch 'custom-effects' into mdev
2022-08-31 20:58:44 +02:00
Ewowi
06c0c0edfb
CustomEffects as usermod: step 4: modify wledv123.json, add drawLine/Arc
...
General (for CE, but also used by M12_pArc)
- add drawArc
Custom Effects
- add WLEDSR Custom Effects comment to places in WLED where it is hooked in
- move from wled.json to wledv123.json
- rename matrixWidth/Heigth to width/height and use virtualWidth/Height
- remove setPixels
- add drawLine / drawArc
2022-08-31 13:14:51 +02:00
Blaz Kristan
8719adef1e
Tetrix vStrip 2D modification.
...
AA version of Bouncing balls
Better AA
2022-08-30 17:20:58 +02:00
Blaz Kristan
cd7bcb79e5
Tetrix vStrip 2D modification.
...
AA version of Bouncing balls
Better AA
2022-08-30 17:18:56 +02:00
Blaz Kristan
59b038b8c4
Index under- shooting.
...
Fix for arc 1D to 2D mapping.
UI segment 2D mapping fix.
Watchdog reposition & flicker reduction.
2022-08-22 16:48:19 +02:00
Blaz Kristan
fb6dfcd3fc
Index under- shooting.
...
Fix for arc 1D to 2D mapping.
UI segment 2D mapping fix.
Watchdog reposition & flicker reduction.
2022-08-22 16:47:25 +02:00
Blaž Kristan
1711ac9a88
Fix in is2D()
...
Horizontal and vertical 1D segment
Index overshoot fix.
2022-08-22 14:35:34 +02:00
Blaž Kristan
e14c5bbd25
Fix in is2D()
...
Vertical & horizontal 1D segment (on 2D matrix)
Index overshooting fix.
2022-08-22 14:08:45 +02:00
Blaz Kristan
74b6a78a9b
Effect fixes.
2022-08-13 00:58:27 +02:00
Blaž Kristan
52e5f467b0
Added two more fonts to Scrolling text.
2022-08-11 11:46:30 +02:00
Blaz Kristan
a8785570df
Memory allocation fixes.
...
Whitespace.
Cleanup.
2022-08-06 12:39:12 +02:00
Blaz Kristan
9270f80af2
Merge branch 'integration' into merge-audio
2022-08-05 23:03:38 +02:00
Blaž Kristan
c5f3e76b21
Compile optimisations, code reduction.
...
2D peek resize.
2022-08-03 14:23:24 +02:00
ewowi
7b3fc206f7
Merge leftovers
2022-08-02 21:52:10 +02:00
ewowi
44c585e8c8
Merge branch 'ledsArrayToSGPC' into integration
2022-08-02 21:12:59 +02:00
ewowi
640f45f57d
Remove leds array from utility functions + small things
...
- Remove CRGB* leds from utility functions
- GameOfLife: fill_solid for prevLeds to for loop
- Remove if !fftResult
- Funky Plank: toggle src and dst
- Comment drawLine as not used
- Duplicate FadeToBlack, call one FadeToBlackOld
2022-08-02 19:44:27 +02:00
Blaz Kristan
0ba8bace0d
2D optimisations.
2022-08-02 18:27:32 +02:00
ewowi
5f8b8835e1
Leds removal leftovers
...
- Remove leds from 1D SEGMENT.data effects
- Noisefire: re-establish own palette
- FreqMatrix to circle mapping
2022-08-02 12:58:35 +02:00
ewowi
78edcfe5cf
Merge branch 'ledsArrayToSGPC' into integration
2022-08-02 12:21:46 +02:00
ewowi
2ca5e0c8b8
Remove leds from FX.cpp
...
- add addPixelColor overloads
- remove setPixels function
- sPC/gPC move leds check to beginning
- refactor wu_pixel work without leds
- remove leds out of effects and replace by sPC/gPC/aPC/nullptr
- workaround %=
- refactor game of life (but need to check patterns / history, see SR)
- refactor fill_circle to work without leds
2022-08-02 12:19:04 +02:00
Blaz Kristan
7ca1d99412
Multiple additions:
...
- transparent leds[] for getPixelColor()
- sample 2D Black Hole for trnasparent leds[]
- conditional audio compile (WLED_NO_AUDIO)
Bugfix:
- effect filtering
2022-08-01 22:01:24 +02:00
ewowi
987b442796
Merge branch 'ledsArrayToSGPC' into integrationMergeOnly
2022-08-01 16:25:51 +02:00
ewowi
004c2920f5
All effects use strip.leds, refactor XY
...
- remove leds out of SEGMENT.data (remove if no other use of data)
- use strip.leds
- refactor XY to make segment relative to the whole matrix
- use RGBW32
- in case of 1D also use XY in leds[]: XY(i%width, i/width)]
- add ps_malloc
2022-08-01 16:11:59 +02:00
ewowi
69f9a484ca
strip.leds array fully fastLed and segment compatible
...
- leds array from uint32_t to CRGB for fastled compatibility
- reading and writing leds from strip to segment sPC/gPC so it has logical instead of physical indexes so it can be used in effects
- change mode_2DBlackHole as showcase how it can both work with leds or with sPC/gPC
2022-07-31 14:48:00 +02:00
Blaz Kristan
dde5367560
Default palette gamma fix.
...
Reverted to leds[] in SR effects.
Code optimisations.
2022-07-31 13:28:12 +02:00
ewowi
66da57f375
POC to use leds array in strip.set/getPixelColor
2022-07-31 12:38:10 +02:00
Blaz Kristan
d328db543e
Bugfixes.
...
- gamma on *Color palettes
- gamma moved out of WS2812FX
- palette fade (JSON) fix
2022-07-30 23:58:29 +02:00
Blaz Kristan
f16558c126
Optimisations.
2022-07-30 14:20:36 +02:00
Blaz Kristan
18884111a6
Scrolling text center & letter M
2022-07-23 22:56:33 +02:00
Blaz Kristan
6c6849d8d7
Vectors & dynamic loadJS.
...
- Segments
- Modes
NOTE: crashes ESP if effect is running while deleting segment.
2022-07-17 15:58:41 +02:00
Blaz Kristan
588c7a81fc
Fix for transitions.
2022-07-12 18:10:07 +02:00
Blaz Kristan
d9f2c2b968
Segment API
...
- moved all drawing logic to segment
- moved transitions to segment
Conditional 2D compile.
Rearranged effect IDs.
Implemented dynamic effect arrays.
2022-07-10 22:23:25 +02:00