You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
uint16_tmode_2Ddna(void) { // dna originally by by ldirko at https://pastebin.com/pCkkkzcs. Updated by Preyy. WLED conversion by Andrew Tuline.
5122
+
uint16_tmode_2Ddna(void) { // dna originally by by ldirko at https://pastebin.com/pCkkkzcs. Updated by Preyy. WLED conversion by Andrew Tuline. Phases added by @ewoudwijma
5123
5123
if (!strip.isMatrix) returnmode_static(); // not a 2D set-up
5124
5124
5125
5125
constuint16_t cols = SEGMENT.virtualWidth();
5126
5126
constuint16_t rows = SEGMENT.virtualHeight();
5127
-
uint8_t phases = SEGMENT.custom1;
5127
+
unsigned phases = SEGMENT.custom1;
5128
+
if (phases > 179) phases = 179 + 2.5f * (phases - 179); // boost for values > 179
5128
5129
5129
5130
if (SEGENV.call == 0) {
5130
5131
SEGMENT.setUpLeds();
@@ -5137,10 +5138,9 @@ uint16_t mode_2Ddna(void) { // dna originally by by ldirko at https://pa
5137
5138
int lastY1 = -1;
5138
5139
int lastY2 = -1;
5139
5140
for (int i = 0; i < cols; i++) {
5140
-
// int posY1 = beatsin8_t(SEGMENT.speed/8, 0, rows-1, 0, i*4 );
0 commit comments