Skip to content

Commit 3dbf78a

Browse files
committed
Merge branch 'mdev' of https://github.com/troyhacks/WLED into mdev
2 parents e5b22bc + f4ac04b commit 3dbf78a

File tree

7 files changed

+196
-10
lines changed

7 files changed

+196
-10
lines changed

platformio.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2164,7 +2164,7 @@ board_build.partitions = tools/WLED_ESP32_4MB_256KB_FS.csv ;; 1.8MB firmware,
21642164
;; board_build.partitions = tools/WLED_ESP32_4MB_512KB_FS.csv ;; 1.7MB firmware, 500KB filesystem (esptool erase_flash needed when changing from "standard WLED" partitions)
21652165
build_flags = ${common.build_flags} ${esp32s3.build_flags} -Wno-misleading-indentation -Wno-format-truncation
21662166
${common_mm.build_flags_S}
2167-
-D WLED_RELEASE_NAME=esp32S3_4MB_S
2167+
-D WLED_RELEASE_NAME=esp32S3_4MB_PSRAM_S
21682168
-DBOARD_HAS_PSRAM ;; -D WLED_USE_PSRAM
21692169
-D WLED_USE_PSRAM_JSON -DALL_JSON_TO_PSRAM ; WLEDMM --> force all JSON stuff into PSRAM; gives more free heap
21702170
-DCONFIG_MBEDTLS_DYNAMIC_BUFFER=1 ;; optional - allows some buffers to use PSRAM
@@ -2202,7 +2202,7 @@ board = lolin_s3_mini ;; -S3 mini: 4MB flash 2MB PSRAM
22022202
board_build.partitions = ${esp32.default_partitions}
22032203
build_flags = ${common.build_flags} ${esp32s3.build_flags} -Wno-misleading-indentation -Wno-format-truncation
22042204
${common_mm.build_flags_S} ${common_mm.build_flags_M}
2205-
-D WLED_RELEASE_NAME=esp32S3_4MB_M
2205+
-D WLED_RELEASE_NAME=esp32S3_4MB_PSRAM_M
22062206
-DBOARD_HAS_PSRAM ;; -D WLED_USE_PSRAM
22072207
-D WLED_USE_PSRAM_JSON -DALL_JSON_TO_PSRAM ; WLEDMM --> force all JSON stuff into PSRAM; gives more free heap
22082208
-DCONFIG_MBEDTLS_DYNAMIC_BUFFER=1 ;; optional - allows some buffers to use PSRAM

usermods/audioreactive/audio_reactive.h

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2056,7 +2056,16 @@ class AudioReactive : public Usermod {
20562056
if ((sclPin >= 0) && (i2c_scl < 0)) i2c_scl = sclPin;
20572057
if (i2c_sda >= 0) sdaPin = -1; // -1 = use global
20582058
if (i2c_scl >= 0) sclPin = -1;
2059-
2059+
case 9:
2060+
DEBUGSR_PRINTLN(F("AR: ES8311 Source (Mic)"));
2061+
audioSource = new ES8311Source(SAMPLE_RATE, BLOCK_SIZE, 1.0f);
2062+
//useInputFilter = 0; // to disable low-cut software filtering and restore previous behaviour
2063+
delay(100);
2064+
// WLEDMM align global pins
2065+
if ((sdaPin >= 0) && (i2c_sda < 0)) i2c_sda = sdaPin; // copy usermod prefs into globals (if globals not defined)
2066+
if ((sclPin >= 0) && (i2c_scl < 0)) i2c_scl = sclPin;
2067+
if (i2c_sda >= 0) sdaPin = -1; // -1 = use global
2068+
if (i2c_scl >= 0) sclPin = -1;
20602069
if (audioSource) audioSource->initialize(i2swsPin, i2ssdPin, i2sckPin, mclkPin);
20612070
break;
20622071

@@ -3002,6 +3011,11 @@ class AudioReactive : public Usermod {
30023011
#else
30033012
oappend(SET_F("addOption(dd,'AC101 ☾',8);"));
30043013
#endif
3014+
#if SR_DMTYPE==9
3015+
oappend(SET_F("addOption(dd,'ES8311 ☾ (⎌)',9);"));
3016+
#else
3017+
oappend(SET_F("addOption(dd,'ES8311 ☾',9);"));
3018+
#endif
30053019
#ifdef SR_SQUELCH
30063020
oappend(SET_F("addInfo(ux+':config:squelch',1,'<i>&#9100; ")); oappendi(SR_SQUELCH); oappend("</i>');"); // 0 is field type, 1 is actual field
30073021
#endif

usermods/audioreactive/audio_source.h

Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -651,6 +651,106 @@ class ES8388Source : public I2SSource {
651651

652652
};
653653

654+
/* ES8311 Sound Module
655+
This is an I2S sound processing unit that requires initialization over
656+
I2C before I2S data can be received.
657+
*/
658+
class ES8311Source : public I2SSource {
659+
private:
660+
// I2C initialization functions for es8311
661+
void _es8311I2cBegin() {
662+
Wire.setClock(100000);
663+
}
664+
665+
void _es8311I2cWrite(uint8_t reg, uint8_t val) {
666+
#ifndef ES8311_ADDR
667+
#define ES8311_ADDR 0x18 // default address is... foggy
668+
#endif
669+
Wire.beginTransmission(ES8311_ADDR);
670+
Wire.write((uint8_t)reg);
671+
Wire.write((uint8_t)val);
672+
uint8_t i2cErr = Wire.endTransmission(); // i2cErr == 0 means OK
673+
if (i2cErr != 0) {
674+
DEBUGSR_PRINTF("AR: ES8311 I2C write failed with error=%d (addr=0x%X, reg 0x%X, val 0x%X).\n", i2cErr, ES8311_ADDR, reg, val);
675+
}
676+
}
677+
678+
void _es8311InitAdc() {
679+
//
680+
// Currently only tested with the ESP32-P4 EV board with the onboard mic.
681+
// Datasheet with I2C commands: https://dl.xkwy2018.com/downloads/RK3588/01_Official%20Release/04_Product%20Line%20Branch_NVR/02_Key%20Device%20Specifications/ES8311%20DS.pdf
682+
//
683+
_es8311I2cBegin();
684+
_es8311I2cWrite(0x00, 0b00011111); // RESET, default value
685+
_es8311I2cWrite(0x45, 0b00000000); // GP, default value
686+
_es8311I2cWrite(0x01, 0b00111010); // CLOCK MANAGER was 0b00110000 trying 0b00111010 (MCLK enable?)
687+
688+
_es8311I2cWrite(0x02, 0b00000000); // 22050hz calculated
689+
_es8311I2cWrite(0x05, 0b00000000); // 22050hz calculated
690+
_es8311I2cWrite(0x03, 0b00010000); // 22050hz calculated
691+
_es8311I2cWrite(0x04, 0b00010000); // 22050hz calculated
692+
_es8311I2cWrite(0x07, 0b00000000); // 22050hz calculated
693+
_es8311I2cWrite(0x08, 0b11111111); // 22050hz calculated
694+
_es8311I2cWrite(0x06, 0b11100011); // 22050hz calculated
695+
696+
_es8311I2cWrite(0x16, 0b00100000); // ADC was 0b00000011 trying 0b00100100 now
697+
_es8311I2cWrite(0x0B, 0b00000000); // SYSTEM at default
698+
_es8311I2cWrite(0x0C, 0b00100000); // SYSTEM was 0b00001111 trying 0b00100000
699+
_es8311I2cWrite(0x10, 0b00010011); // SYSTEM was 0b00011111 trying 0b00010011
700+
_es8311I2cWrite(0x11, 0b01111100); // SYSTEM was 0b01111111 trying 0b01111100
701+
_es8311I2cWrite(0x00, 0b11000000); // *** RESET (again - seems important?)
702+
_es8311I2cWrite(0x01, 0b00111010); // CLOCK MANAGER was 0b00111111 trying 0b00111010 (again??)
703+
_es8311I2cWrite(0x14, 0b00010000); // *** SYSTEM was 0b00011010 trying 0b00010000 (or 0b01111010) (PGA gain)
704+
_es8311I2cWrite(0x12, 0b00000000); // SYSTEM - DAC, likely don't care
705+
_es8311I2cWrite(0x13, 0b00010000); // SYSTEM - output, likely don't cate
706+
_es8311I2cWrite(0x09, 0b00001000); // SDP IN (likely don't care) was 0b00001100 (16-bit) - changed to 0b00001000 (I2S 32-bit)
707+
_es8311I2cWrite(0x0A, 0b00001000); // *** SDP OUT, was 0b00001100 trying 0b00001000 (I2S 32-bit)
708+
_es8311I2cWrite(0x0E, 0b00000010); // *** SYSTEM was 0b00000010 trying 0b00011010 (seems best so far!) (or 0b00000010)
709+
_es8311I2cWrite(0x0F, 0b01000100); // SYSTEM was 0b01000100
710+
_es8311I2cWrite(0x15, 0b00000000); // ADC soft ramp (disabled)
711+
_es8311I2cWrite(0x1B, 0b00000101); // ADC soft-mute was 0b00000101
712+
_es8311I2cWrite(0x1C, 0b01100101); // ADC EQ and offset freeze was 0b01100101 (bad at 0b00101100)
713+
_es8311I2cWrite(0x17, 0b10111111); // ADC volume was 0b11111111 trying ADC volume 0b10111111 = 0db (maxgain) 0x16
714+
_es8311I2cWrite(0x44, 0b00000000); // 0b10000000 - loopback test. on: 0x88; off: 0x00; mic--" speak
715+
716+
}
717+
718+
public:
719+
ES8311Source(SRate_t sampleRate, int blockSize, float sampleScale = 1.0f, bool i2sMaster=true) :
720+
I2SSource(sampleRate, blockSize, sampleScale, i2sMaster) {
721+
_config.channel_format = I2S_CHANNEL_FMT_ONLY_LEFT;
722+
};
723+
724+
void initialize(int8_t i2swsPin, int8_t i2ssdPin, int8_t i2sckPin, int8_t mclkPin) {
725+
DEBUGSR_PRINTLN("es8311Source:: initialize();");
726+
727+
// if ((i2sckPin < 0) || (mclkPin < 0)) { // WLEDMM not sure if this check is needed here, too
728+
// ERRORSR_PRINTF("\nAR: invalid I2S es8311 pin: SCK=%d, MCLK=%d\n", i2sckPin, mclkPin);
729+
// return;
730+
// }
731+
// BUG: "use global I2C pins" are valid as -1, and -1 is seen as invalid here.
732+
// Workaround: Set I2C pins here, which will also set them globally.
733+
// Bug also exists in ES7243.
734+
if ((i2c_sda < 0) || (i2c_scl < 0)) { // check that global I2C pins are not "undefined"
735+
ERRORSR_PRINTF("\nAR: invalid es8311 global I2C pins: SDA=%d, SCL=%d\n", i2c_sda, i2c_scl);
736+
return;
737+
}
738+
if (!pinManager.joinWire(i2c_sda, i2c_scl)) { // WLEDMM specific: start I2C with globally defined pins
739+
ERRORSR_PRINTF("\nAR: failed to join I2C bus with SDA=%d, SCL=%d\n", i2c_sda, i2c_scl);
740+
return;
741+
}
742+
743+
// First route mclk, then configure ADC over I2C, then configure I2S
744+
_es8311InitAdc();
745+
I2SSource::initialize(i2swsPin, i2ssdPin, i2sckPin, mclkPin);
746+
}
747+
748+
void deinitialize() {
749+
I2SSource::deinitialize();
750+
}
751+
752+
};
753+
654754
class WM8978Source : public I2SSource {
655755
private:
656756
// I2C initialization functions for WM8978

wled00/FX.cpp

Lines changed: 72 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1794,6 +1794,61 @@ uint16_t mode_multi_comet(void) {
17941794
}
17951795
static const char _data_FX_MODE_MULTI_COMET[] PROGMEM = "Multi Comet";
17961796

1797+
// audioreactive multi-comet by @softhack007
1798+
uint16_t mode_multi_comet_ar(void) {
1799+
constexpr unsigned MAX_COMETS = 16; // was 8
1800+
uint32_t cycleTime = max(1, int((255 - SEGMENT.speed)/4));
1801+
uint32_t it = strip.now / cycleTime;
1802+
if (SEGENV.step == it) return FRAMETIME; // too early
1803+
1804+
if (!SEGENV.allocateData(sizeof(uint16_t) * MAX_COMETS)) return mode_static(); //allocation failed
1805+
uint16_t* comets = reinterpret_cast<uint16_t*>(SEGENV.data);
1806+
if (SEGENV.call == 0) { // do some initializations
1807+
SEGMENT.setUpLeds(); SEGMENT.fill(BLACK);
1808+
for(uint8_t i=0; i < MAX_COMETS; i++) comets[i] = SEGLEN; // WLEDMM make sure comments are started individually
1809+
SEGENV.aux0 = 0;
1810+
}
1811+
SEGMENT.fade_out(254 - SEGMENT.intensity/2);
1812+
1813+
um_data_t *um_data;
1814+
if (!usermods.getUMData(&um_data, USERMOD_ID_AUDIOREACTIVE)) um_data = simulateSound(SEGMENT.soundSim);
1815+
float volumeSmth = *(float*) um_data->u_data[0];
1816+
int16_t volumeRaw = *(int16_t*) um_data->u_data[1];
1817+
uint8_t samplePeak = *(uint8_t*) um_data->u_data[3];
1818+
1819+
uint16_t armed = SEGENV.aux0; // allows to delay comet launch
1820+
1821+
#if defined(ARDUINO_ARCH_ESP32)
1822+
random16_add_entropy(esp_random() & 0xFFFF); // improve randomness (esp32)
1823+
#endif
1824+
bool shotOne = false; // avoids starting several coments at the same time (invisible due to overlap)
1825+
for(unsigned i=0; i < MAX_COMETS; i++) {
1826+
if(comets[i] < SEGLEN) {
1827+
// draw comet
1828+
uint16_t index = comets[i];
1829+
if (SEGCOLOR(2) != 0)
1830+
SEGMENT.setPixelColor(index, i % 2 ? SEGMENT.color_from_palette(index, true, PALETTE_SOLID_WRAP, 0) : SEGCOLOR(2));
1831+
else
1832+
SEGMENT.setPixelColor(index, SEGMENT.color_from_palette(index, true, PALETTE_SOLID_WRAP, 0));
1833+
comets[i]++; // move
1834+
} else {
1835+
// randomly launch a new comet
1836+
if (random16(min(uint16_t(256), SEGLEN)) < 3) armed++; // new comet loaded and ready
1837+
if (armed > 2) armed = 2; // max three armed at once (avoid overlap)
1838+
// delay comet "launch" during silence, and wait until next beat
1839+
if ( (armed > 0) && (shotOne == false)
1840+
&& (volumeSmth > 1.0f) && ((samplePeak > 0) || (volumeRaw > 104)) ) { // delayed lauch - wait until peak, don't launch in silence
1841+
comets[i] = 0; // start a new comet!
1842+
armed--; // un-arm one
1843+
shotOne = true;
1844+
}
1845+
}
1846+
}
1847+
SEGENV.aux0 = armed;
1848+
SEGENV.step = it;
1849+
return FRAMETIME;
1850+
}
1851+
static const char _data_FX_MODE_MULTI_COMET_AR[] PROGMEM = "Multi Comet audio ☾@Speed,Tail Length;!,!;!;1v;sx=160,ix=32,m12=7,si=1"; // Pinwheel, WeWillRockU
17971852

17981853
/*
17991854
* Running random pixels ("Stream 2")
@@ -2128,12 +2183,16 @@ uint16_t mode_fire_2012() {
21282183

21292184
const uint8_t ignition = max(3,SEGLEN/10); // ignition area: 10% of segment length or minimum 3 pixels
21302185

2186+
#if defined(ARDUINO_ARCH_ESP32)
2187+
random16_add_entropy(esp_random() & 0xFFFF); // improves randonmess
2188+
#endif
2189+
21312190
// Step 1. Cool down every cell a little
21322191
for (int i = 0; i < SEGLEN; i++) {
21332192
uint8_t cool = (it != SEGENV.step) ? random8((((20 + SEGMENT.speed/3) * 16) / SEGLEN)+2) : random8(4);
21342193
uint8_t minTemp = (i<ignition) ? (ignition-i)/4 + 16 : 0; // should not become black in ignition area
21352194
uint8_t temp = qsub8(heat[i], cool);
2136-
heat[i] = temp<minTemp ? minTemp : temp;
2195+
heat[i] = max(minTemp, temp);
21372196
}
21382197

21392198
if (it != SEGENV.step) {
@@ -5060,11 +5119,13 @@ static const char _data_FX_MODE_2DCOLOREDBURSTS[] PROGMEM = "Colored Bursts@Spee
50605119
/////////////////////
50615120
// 2D DNA //
50625121
/////////////////////
5063-
uint16_t mode_2Ddna(void) { // dna originally by by ldirko at https://pastebin.com/pCkkkzcs. Updated by Preyy. WLED conversion by Andrew Tuline.
5122+
uint16_t mode_2Ddna(void) { // dna originally by by ldirko at https://pastebin.com/pCkkkzcs. Updated by Preyy. WLED conversion by Andrew Tuline. Phases added by @ewoudwijma
50645123
if (!strip.isMatrix) return mode_static(); // not a 2D set-up
50655124

50665125
const uint16_t cols = SEGMENT.virtualWidth();
50675126
const uint16_t rows = SEGMENT.virtualHeight();
5127+
unsigned phases = SEGMENT.custom1;
5128+
if (phases > 179) phases = 179 + 2.5f * (phases - 179); // boost for values > 179
50685129

50695130
if (SEGENV.call == 0) {
50705131
SEGMENT.setUpLeds();
@@ -5077,8 +5138,12 @@ uint16_t mode_2Ddna(void) { // dna originally by by ldirko at https://pa
50775138
int lastY1 = -1;
50785139
int lastY2 = -1;
50795140
for (int i = 0; i < cols; i++) {
5080-
int posY1 = beatsin8_t(SEGMENT.speed/8, 0, rows-1, 0, i*4 );
5081-
int posY2 = beatsin8_t(SEGMENT.speed/8, 0, rows-1, 0, i*4+128);
5141+
// 256 is a complete phase; half a phase of dna is 128
5142+
// unsigned phase = i * 4 * phases / cols; // original formula; cols ==0 cannot happen due to the for loop
5143+
unsigned phase = i * 4 * phases / 128; // WLEDMM this reproduces the previous behaviour at phases=127
5144+
int posY1 = beatsin8_t(SEGMENT.speed/8, 0, rows-1, 0, phase );
5145+
int posY2 = beatsin8_t(SEGMENT.speed/8, 0, rows-1, 0, phase+128);
5146+
50825147
if ((i==0) || ((abs(lastY1 - posY1) < 2) && (abs(lastY2 - posY2) < 2))) { // use original code when no holes
50835148
SEGMENT.setPixelColorXY(i, posY1, ColorFromPalette(SEGPALETTE, i*5+strip.now/17, beatsin8_t(5, 55, 255, 0, i*10), LINEARBLEND));
50845149
SEGMENT.setPixelColorXY(i, posY2, ColorFromPalette(SEGPALETTE, i*5+128+strip.now/17, beatsin8_t(5, 55, 255, 0, i*10+128), LINEARBLEND));
@@ -5093,7 +5158,7 @@ uint16_t mode_2Ddna(void) { // dna originally by by ldirko at https://pa
50935158

50945159
return FRAMETIME;
50955160
} // mode_2Ddna()
5096-
static const char _data_FX_MODE_2DDNA[] PROGMEM = "DNA@Scroll speed,Blur;;!;2";
5161+
static const char _data_FX_MODE_2DDNA[] PROGMEM = "DNA@Scroll speed,Blur,Phases;;!;2";
50975162

50985163

50995164
/////////////////////////
@@ -5706,6 +5771,7 @@ uint16_t mode_2DJulia(void) { // An animated Julia set
57065771
float imAg;
57075772

57085773
if (SEGENV.call == 0) { // Reset the center if we've just re-started this animation.
5774+
SEGMENT.setUpLeds(); SEGMENT.fill(BLACK); // WLEDMM avoids dimming when blur option is selected
57095775
julias->xcen = 0.;
57105776
julias->ycen = 0.;
57115777
julias->xymag = 1.0;
@@ -9012,6 +9078,7 @@ void WS2812FX::setupEffectData() {
90129078
addEffect(FX_MODE_LIGHTNING, &mode_lightning, _data_FX_MODE_LIGHTNING);
90139079
addEffect(FX_MODE_ICU, &mode_icu, _data_FX_MODE_ICU);
90149080
addEffect(FX_MODE_MULTI_COMET, &mode_multi_comet, _data_FX_MODE_MULTI_COMET);
9081+
addEffect(FX_MODE_MULTI_COMET_AR, &mode_multi_comet_ar, _data_FX_MODE_MULTI_COMET_AR);
90159082
addEffect(FX_MODE_DUAL_LARSON_SCANNER, &mode_dual_larson_scanner, _data_FX_MODE_DUAL_LARSON_SCANNER);
90169083
addEffect(FX_MODE_RANDOM_CHASE, &mode_random_chase, _data_FX_MODE_RANDOM_CHASE);
90179084
addEffect(FX_MODE_OSCILLATE, &mode_oscillate, _data_FX_MODE_OSCILLATE);

wled00/FX.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ bool strip_uses_global_leds(void) __attribute__((pure)); // WLEDMM implemented
330330
// Experimental Audioresponsive modes from WLED-SR
331331
// #define FX_MODE_3DSphereMove 189 // experimental WLED-SR "cube" mode
332332
#define FX_MODE_POPCORN_AR 190 // WLED-SR audioreactive popcorn
333-
// #define FX_MODE_MULTI_COMET_AR 191 // WLED-SR audioreactive multi-comet
333+
#define FX_MODE_MULTI_COMET_AR 191 // WLED-SR audioreactive multi-comet
334334
#define FX_MODE_STARBURST_AR 192 // WLED-SR audioreactive fireworks starburst
335335
// #define FX_MODE_PALETTE_AR 193 // WLED-SR audioreactive palette
336336
#define FX_MODE_FIREWORKS_AR 194 // WLED-SR audioreactive fireworks
@@ -380,6 +380,7 @@ typedef struct Segment {
380380
};
381381
uint8_t grouping, spacing;
382382
uint8_t opacity;
383+
uint8_t lastBri; // WLEDMM optimization for black-to-black "transitions"
383384
bool needsBlank; // WLEDMM indicates that Segment needs to be blanked (due to change of mirror / reverse / transpose / spacing)
384385
uint32_t colors[NUM_COLORS];
385386
uint8_t cct; //0==1900K, 255==10091K
@@ -490,6 +491,7 @@ typedef struct Segment {
490491
grouping(1),
491492
spacing(0),
492493
opacity(255),
494+
lastBri(255),
493495
needsBlank(false),
494496
colors{DEFAULT_COLOR,BLACK,BLACK},
495497
cct(127),

wled00/FX_fcn.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1913,6 +1913,7 @@ void WS2812FX::service() {
19131913
seg.resetIfRequired();
19141914

19151915
if (!seg.isActive()) continue;
1916+
if (!seg.on && !seg.transitional) continue; // WLEDMM skip disabled segments, unless a crossfade is ongoing
19161917

19171918
// last condition ensures all solid segments are updated at the same time
19181919
if(nowUp >= seg.next_time || _triggered || (doShow && seg.mode == FX_MODE_STATIC)) // WLEDMM ">=" instead of ">"
@@ -1934,6 +1935,7 @@ void WS2812FX::service() {
19341935
now = millis() + timebase;
19351936
#endif
19361937
seg.startFrame(); // WLEDMM
1938+
if (!_triggered && (seg.currentBri(seg.opacity) == 0) && (seg.lastBri == 0)) continue; // WLEDMM skip totally black segments
19371939
// effect blending (execute previous effect)
19381940
// actual code may be a bit more involved as effects have runtime data including allocated memory
19391941
//if (seg.transitional && seg._modeP) (*_mode[seg._modeP])(progress());
@@ -1943,6 +1945,7 @@ void WS2812FX::service() {
19431945
if (seg.mode != FX_MODE_HALLOWEEN_EYES) seg.call++;
19441946
if (seg.transitional && frameDelay > FRAMETIME) frameDelay = FRAMETIME; // force faster updates during transition
19451947

1948+
seg.lastBri = seg.currentBri(seg.on ? seg.opacity:0); // WLEDMM remember for next time
19461949
seg.handleTransition();
19471950
}
19481951

wled00/wled.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*/
99

1010
// version code in format yymmddb (b = daily build)
11-
#define VERSION 2411290
11+
#define VERSION 2412030
1212

1313
// WLEDMM - you can check for this define in usermods, to only enabled WLEDMM specific code in the "right" fork. Its not defined in AC WLED.
1414
#define _MoonModules_WLED_

0 commit comments

Comments
 (0)