CustomFX, platformIO and bin name: small updates
platformio: - remove ABL_MILLIAMPS_DEFAULT from build_flags_min, set default 1500 in const.h - add default in wemos_shield_esp32_4MB_max_base - add wemos_shield_esp32_16MB_SPM1423_max arti_wled.h: bugfix use all leds in 2D usermod_v2_customeffects.h: fill black if call==0 index.js and xml.cpp: bin name: replace one _ by ' ' to enable line wrap in info tab and ota update
This commit is contained in:
@@ -1799,7 +1799,7 @@ class AudioReactive : public Usermod {
|
||||
|
||||
JsonObject freqScale = top.createNestedObject("frequency");
|
||||
freqScale[F("scale")] = FFTScalingMode;
|
||||
freqScale[F("profile")] = pinkIndex;
|
||||
freqScale[F("profile")] = pinkIndex; //WLEDMM
|
||||
|
||||
JsonObject sync = top.createNestedObject("sync");
|
||||
sync[F("port")] = audioSyncPort;
|
||||
@@ -1859,7 +1859,7 @@ class AudioReactive : public Usermod {
|
||||
configComplete &= getJsonValue(top["dynamics"][F("fall")], decayTime);
|
||||
|
||||
configComplete &= getJsonValue(top["frequency"][F("scale")], FFTScalingMode);
|
||||
configComplete &= getJsonValue(top["frequency"][F("profile")], pinkIndex);
|
||||
configComplete &= getJsonValue(top["frequency"][F("profile")], pinkIndex); //WLEDMM
|
||||
|
||||
configComplete &= getJsonValue(top["sync"][F("port")], audioSyncPort);
|
||||
configComplete &= getJsonValue(top["sync"][F("mode")], audioSyncEnabled);
|
||||
@@ -1900,6 +1900,7 @@ class AudioReactive : public Usermod {
|
||||
oappend(SET_F("addOption(dd,'Square Root (Energy)',3);"));
|
||||
oappend(SET_F("addOption(dd,'Logarithmic (Loudness)',1);"));
|
||||
|
||||
//WLEDMM
|
||||
oappend(SET_F("dd=addDropdown('AudioReactive','frequency:profile');"));
|
||||
oappend(SET_F("addOption(dd,'Generic Microphone',0);"));
|
||||
oappend(SET_F("addOption(dd,'Generic Line-In',1);"));
|
||||
|
||||
@@ -507,9 +507,12 @@ bool ARTI::loop()
|
||||
|
||||
for (int i = 0; i< arti_get_external_variable(F_ledCount); i++)
|
||||
{
|
||||
ar->set(function_symbol->function_scope->symbols[0]->scope_index, i%strip.matrixWidth); // set x
|
||||
if (function_symbol->function_scope->nrOfFormals == 2) // 2D
|
||||
if (function_symbol->function_scope->nrOfFormals == 2) {// 2D
|
||||
ar->set(function_symbol->function_scope->symbols[0]->scope_index, i%strip.matrixWidth); // set x
|
||||
ar->set(function_symbol->function_scope->symbols[1]->scope_index, i/strip.matrixWidth); // set y
|
||||
}
|
||||
else
|
||||
ar->set(function_symbol->function_scope->symbols[0]->scope_index, i); // set x
|
||||
|
||||
this->callStack->push(ar);
|
||||
|
||||
|
||||
@@ -14,8 +14,10 @@ uint16_t mode_customEffect(void) {
|
||||
static bool notEnoughHeap;
|
||||
|
||||
static char previousEffect[charLength];
|
||||
if (SEGENV.call == 0)
|
||||
if (SEGENV.call == 0) {
|
||||
strcpy(previousEffect, ""); //force init
|
||||
SEGMENT.fill(BLACK); //in case not all leds used e.g. when using expand 1d Circles. Tbd: fill black should never be used to allow for blends/transitions
|
||||
}
|
||||
|
||||
char currentEffect[charLength];
|
||||
strcpy(currentEffect, (SEGMENT.name != nullptr)?SEGMENT.name:"default"); //note: switching preset with segment name to preset without does not clear the SEGMENT.name variable, but not gonna solve here ;-)
|
||||
|
||||
Reference in New Issue
Block a user