Skip to content

Commit 8ff0223

Browse files
committed
GEQ flat mode for 2D
you still have to use a trick -> the "expand 1D" drop-down is hidden once you select a 2D-capable effect * Create your segment with 2 colums or 2 rows (might also need "transpose" * Select a 1D effect like chunchun * set expand to "Pixels" or "Bar" * now select the GEQ effect --> Flat GEQ runs in the previously set expand mode.
1 parent 402786c commit 8ff0223

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wled00/FX.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8122,7 +8122,7 @@ static void setFlatPixelXY(bool flatMode, int x, int y, uint32_t color, unsigned
81228122

81238123
uint16_t mode_2DGEQ(void) { // By Will Tatam. Code reduction by Ewoud Wijma. Flat Mode added by softhack007
81248124
//if (!strip.isMatrix) return mode_static(); // not a 2D set-up, not a problem
8125-
bool flatMode = !SEGMENT.is2D();
8125+
bool flatMode = !SEGMENT.is2D() || (SEGMENT.width() < 3) || (SEGMENT.height() < 3); // also use flat mode when less than 3 colums or rows
81268126

81278127
const int NUM_BANDS = map2(SEGMENT.custom1, 0, 255, 1, 16);
81288128
const int vLength = SEGLEN; // for flat mode

0 commit comments

Comments
 (0)