Skip to content

Commit c3c3ff3

Browse files
committed
Change WLEDSR to WLEDMM in comments
1 parent f2adc5e commit c3c3ff3

24 files changed

Lines changed: 98 additions & 98 deletions

pio-scripts/output_bins.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def bin_rename_copy(source, target, env):
3535
if release_name:
3636
_create_dirs(["release"])
3737
version = _get_cpp_define_value(env, "WLED_VERSION")
38-
release_file = "{}release{}WLEDMM_{}_{}.bin".format(OUTPUT_DIR, os.path.sep, version, release_name) #WLEDSR: add MM postfix to WLED
38+
release_file = "{}release{}WLEDMM_{}_{}.bin".format(OUTPUT_DIR, os.path.sep, version, release_name) #WLEDMM: add MM postfix to WLED
3939
shutil.copy(str(target[0]), release_file)
4040

4141
# check if new target files exist and remove if necessary

platformio.ini

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ default_partitions = tools/WLED_ESP32_4MB_1MB_FS.csv
242242
lib_deps =
243243
${env.lib_deps}
244244
; https://github.com/lorol/LITTLEFS.git
245-
; WLEDSR specific: use patched version of lorol LittleFS
245+
; WLEDMM specific: use patched version of lorol LittleFS
246246
https://github.com/softhack007/LITTLEFS-threadsafe.git#master
247247
makuna/NeoPixelBus @ 2.6.9
248248
https://github.com/pbolduc/AsyncTCP.git @ 1.2.0
@@ -551,7 +551,7 @@ build_flags_min =
551551
-D WLED_USE_MY_CONFIG
552552
-D USERMOD_AUDIOREACTIVE
553553
-D UM_AUDIOREACTIVE_USE_NEW_FFT ; use latest (upstream) FFTLib, instead of older library midified by blazoncek. Slightly faster, more accurate, needs 2KB RAM extra
554-
-D USERMOD_CUSTOMEFFECTS ; WLEDSR usermod
554+
-D USERMOD_CUSTOMEFFECTS ; WLEDMM usermod
555555
; -D WLED_DEBUG ; lots of generic debug messages
556556
; -D SR_DEBUG ; some extra debug messages from audioreactive
557557

@@ -568,9 +568,9 @@ build_flags_max =
568568
-D USERMOD_FOUR_LINE_DISPLAY
569569
-D USERMOD_ROTARY_ENCODER_UI
570570
-D USERMOD_AUTO_SAVE
571-
-D USERMOD_WEATHER ; WLEDSR usermod
571+
-D USERMOD_WEATHER ; WLEDMM usermod
572572
-D USERMOD_MPU6050_IMU ; gyro/accelero for USERMOD_GAMES (ONLY WORKS IF USERMOD_FOUR_LINE_DISPLAY NOT INCLUDED - I2C SHARING BUG)
573-
-D USERMOD_GAMES ; WLEDSR usermod
573+
-D USERMOD_GAMES ; WLEDMM usermod
574574

575575
lib_deps_max =
576576
OneWire@~2.3.5 ; used for USERMOD_FOUR_LINE_DISPLAY and USERMOD_DALLASTEMPERATURE

usermods/usermod_v2_four_line_display/usermod_v2_four_line_display.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ class FourLineDisplayUsermod : public Usermod {
177177
isHW = (ioPin[0]==i2c_scl && ioPin[1]==i2c_sda);
178178
//isHW = true;
179179
if (isHW) po = PinOwner::HW_I2C; // allow multiple allocations of HW I2C bus pins
180-
if (ioPin[0] < 0 || ioPin[1] < 0) { type=NONE; return; } //WLEDSR bugfix - ensure that "final" GPIO are valid
180+
if (ioPin[0] < 0 || ioPin[1] < 0) { type=NONE; return; } //WLEDMM bugfix - ensure that "final" GPIO are valid
181181
PinManagerPinType pins[2] = { { ioPin[0], true }, { ioPin[1], true } };
182182
if (!pinManager.allocateMultiplePins(pins, 2, po)) { type=NONE; return; }
183183
}

usermods/usermod_v2_four_line_display_ALT/usermod_v2_four_line_display_ALT.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ class FourLineDisplayUsermod : public Usermod {
339339
// isHW = true;
340340
if (isHW) po = PinOwner::HW_I2C; // allow multiple allocations of HW I2C bus pins
341341
PinManagerPinType pins[2] = { {ioPin[0], true }, { ioPin[1], true } };
342-
if (ioPin[0] < 0 || ioPin[1] < 0) { type=NONE; return; } //WLEDSR bugfix - ensure that "final" GPIO are valid
342+
if (ioPin[0] < 0 || ioPin[1] < 0) { type=NONE; return; } //WLEDMM bugfix - ensure that "final" GPIO are valid
343343
if (!pinManager.allocateMultiplePins(pins, 2, po)) { type=NONE; return; }
344344
}
345345

usermods/usermod_v2_games/usermod_v2_games.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ static const char _data_FX_MODE_IMUTest[] PROGMEM = "🎮 IMUTest@;;;2d";
211211

212212
#endif
213213

214-
//WLEDSR 3D to 2D mapping
214+
//WLEDMM 3D to 2D mapping
215215
struct Voxel {
216216
float x;
217217
float y;

wled00/FX.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1083,7 +1083,7 @@ uint16_t mode_running_random(void) {
10831083

10841084
uint8_t z = it % zoneSize;
10851085
bool nzone = (!z && it != SEGENV.aux1);
1086-
for (int i=SEGLEN-1; i >= 0; i--) { // WLEDSR bugfix
1086+
for (int i=SEGLEN-1; i >= 0; i--) { // WLEDMM bugfix
10871087
if (nzone || z >= zoneSize) {
10881088
uint8_t lastrand = PRNG16 >> 8;
10891089
int16_t diff = 0;
@@ -1724,7 +1724,7 @@ uint16_t mode_random_chase(void)
17241724
uint32_t color = SEGENV.step;
17251725
random16_set_seed(SEGENV.aux0);
17261726

1727-
for (int i = SEGLEN -1; i >= 0; i--) { // WLEDSR bugfix
1727+
for (int i = SEGLEN -1; i >= 0; i--) { // WLEDMM bugfix
17281728
uint8_t r = random8(6) != 0 ? (color >> 16 & 0xFF) : random8();
17291729
uint8_t g = random8(6) != 0 ? (color >> 8 & 0xFF) : random8();
17301730
uint8_t b = random8(6) != 0 ? (color & 0xFF) : random8();
@@ -5347,7 +5347,7 @@ static const char _data_FX_MODE_2DPOLARLIGHTS[] PROGMEM = "Polar Lights@Speed,Sc
53475347
uint16_t mode_2DPulser(void) { // By: ldirko https://editor.soulmatelights.com/gallery/878-pulse-test , modifed by: Andrew Tuline
53485348
if (!strip.isMatrix) return mode_static(); // not a 2D set-up
53495349

5350-
const uint16_t cols = SEGMENT.virtualWidth(); // WLEDSR bugfix
5350+
const uint16_t cols = SEGMENT.virtualWidth(); // WLEDMM bugfix
53515351
const uint16_t rows = SEGMENT.virtualHeight();
53525352

53535353
if (SEGENV.call == 0) {
@@ -5358,7 +5358,7 @@ uint16_t mode_2DPulser(void) { // By: ldirko https://edi
53585358
SEGMENT.fadeToBlackBy(8 - (SEGMENT.intensity>>5));
53595359

53605360
uint32_t a = strip.now / (18 - SEGMENT.speed / 16);
5361-
uint16_t x = (a / 14) % cols; // WLEDSR bugfix
5361+
uint16_t x = (a / 14) % cols; // WLEDMM bugfix
53625362
uint16_t y = map((sin8(a * 5) + sin8(a * 4) + sin8(a * 2)), 0, 765, rows-1, 0);
53635363
SEGMENT.setPixelColorXY(x, y, ColorFromPalette(SEGPALETTE, map(y, 0, rows-1, 0, 255), 255, LINEARBLEND));
53645364

wled00/FX.h

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@
317317
#define FX_MODE_WAVESINS 184
318318
#define FX_MODE_ROCKTAVES 185
319319
#define FX_MODE_2DAKEMI 186
320-
#define FX_MODE_CUSTOMEFFECT 187 //WLEDSR Custom Effects
320+
#define FX_MODE_CUSTOMEFFECT 187 //WLEDMM Custom Effects
321321

322322
#define MODE_COUNT 188
323323

@@ -326,9 +326,9 @@ typedef enum mapping1D2D {
326326
M12_pBar = 1,
327327
M12_pArc = 2,
328328
M12_pCorner = 3,
329-
M12_jMap = 4, //WLEDSR jMap
330-
M12_sCircle = 5, //WLEDSR jMap
331-
M12_sBlock = 6 //WLEDSR jMap
329+
M12_jMap = 4, //WLEDMM jMap
330+
M12_sCircle = 5, //WLEDMM jMap
331+
M12_sBlock = 6 //WLEDMM jMap
332332
} mapping1D2D_t;
333333

334334
// segment, 72 bytes
@@ -382,7 +382,7 @@ typedef struct Segment {
382382
byte* data;
383383
CRGB* leds;
384384
static CRGB *_globalLeds;
385-
void *jMap; //WLEDSR jMap
385+
void *jMap; //WLEDMM jMap
386386

387387
private:
388388
union {
@@ -473,7 +473,7 @@ typedef struct Segment {
473473
}
474474

475475
Segment(uint16_t sStartX, uint16_t sStopX, uint16_t sStartY, uint16_t sStopY) : Segment(sStartX, sStopX) {
476-
Serial.println("Segment"); //WLEDSR jMap
476+
Serial.println("Segment"); //WLEDMM jMap
477477
startY = sStartY;
478478
stopY = sStopY;
479479
}
@@ -576,8 +576,8 @@ typedef struct Segment {
576576
uint16_t virtualWidth(void) const;
577577
uint16_t virtualHeight(void) const;
578578
uint16_t nrOfVStrips(void) const;
579-
void createjMap(); //WLEDSR jMap
580-
void deletejMap(); //WLEDSR jMap
579+
void createjMap(); //WLEDMM jMap
580+
void deletejMap(); //WLEDMM jMap
581581
#ifndef WLED_DISABLE_2D
582582
uint16_t XY(uint16_t x, uint16_t y); // support function to get relative index within segment (for leds[])
583583
void setPixelColorXY(int x, int y, uint32_t c); // set relative pixel within segment with color

wled00/FX_2Dfcn.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ void WS2812FX::setUpMatrix() {
109109
}
110110

111111
// absolute matrix version of setPixelColor()
112-
void IRAM_ATTR_YN WS2812FX::setPixelColorXY(int x, int y, uint32_t col) //WLEDSR: IRAM_ATTR conditionaly
112+
void IRAM_ATTR_YN WS2812FX::setPixelColorXY(int x, int y, uint32_t col) //WLEDMM: IRAM_ATTR conditionaly
113113
{
114114
#ifndef WLED_DISABLE_2D
115115
if (!isMatrix) return; // not a matrix set-up
@@ -141,13 +141,13 @@ uint32_t WS2812FX::getPixelColorXY(uint16_t x, uint16_t y) {
141141
#ifndef WLED_DISABLE_2D
142142

143143
// XY(x,y) - gets pixel index within current segment (often used to reference leds[] array element)
144-
uint16_t IRAM_ATTR_YN Segment::XY(uint16_t x, uint16_t y) { //WLEDSR: IRAM_ATTR conditionaly
144+
uint16_t IRAM_ATTR_YN Segment::XY(uint16_t x, uint16_t y) { //WLEDMM: IRAM_ATTR conditionaly
145145
uint16_t width = virtualWidth(); // segment width in logical pixels
146146
uint16_t height = virtualHeight(); // segment height in logical pixels
147147
return (x%width) + (y%height) * width;
148148
}
149149

150-
void IRAM_ATTR_YN Segment::setPixelColorXY(int x, int y, uint32_t col) //WLEDSR: IRAM_ATTR conditionaly
150+
void IRAM_ATTR_YN Segment::setPixelColorXY(int x, int y, uint32_t col) //WLEDMM: IRAM_ATTR conditionaly
151151
{
152152
if (!strip.isMatrix) return; // not a matrix set-up
153153
if (x >= virtualWidth() || y >= virtualHeight() || x<0 || y<0) return; // if pixel would fall out of virtual segment just exit

wled00/FX_fcn.cpp

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ Segment::Segment(const Segment &orig) {
8989
if (orig.data) { if (allocateData(orig._dataLen)) memcpy(data, orig.data, orig._dataLen); }
9090
if (orig._t) { _t = new Transition(orig._t->_dur, orig._t->_briT, orig._t->_cctT, orig._t->_colorT); }
9191
if (orig.leds && !Segment::_globalLeds) { leds = (CRGB*)malloc(sizeof(CRGB)*length()); if (leds) memcpy(leds, orig.leds, sizeof(CRGB)*length()); }
92-
jMap = nullptr; //WLEDSR jMap
92+
jMap = nullptr; //WLEDMM jMap
9393
}
9494

9595
// move constructor
@@ -101,7 +101,7 @@ Segment::Segment(Segment &&orig) noexcept {
101101
orig._dataLen = 0;
102102
orig._t = nullptr;
103103
orig.leds = nullptr;
104-
orig.jMap = nullptr; //WLEDSR jMap
104+
orig.jMap = nullptr; //WLEDMM jMap
105105
}
106106

107107
// copy assignment
@@ -126,7 +126,7 @@ Segment& Segment::operator= (const Segment &orig) {
126126
if (orig.data) { if (allocateData(orig._dataLen)) memcpy(data, orig.data, orig._dataLen); }
127127
if (orig._t) { _t = new Transition(orig._t->_dur, orig._t->_briT, orig._t->_cctT, orig._t->_colorT); }
128128
if (orig.leds && !Segment::_globalLeds) { leds = (CRGB*)malloc(sizeof(CRGB)*length()); if (leds) memcpy(leds, orig.leds, sizeof(CRGB)*length()); }
129-
jMap = nullptr; //WLEDSR jMap
129+
jMap = nullptr; //WLEDMM jMap
130130
}
131131
return *this;
132132
}
@@ -145,7 +145,7 @@ Segment& Segment::operator= (Segment &&orig) noexcept {
145145
orig._dataLen = 0;
146146
orig._t = nullptr;
147147
orig.leds = nullptr;
148-
orig.jMap = nullptr; //WLEDSR jMap
148+
orig.jMap = nullptr; //WLEDMM jMap
149149
}
150150
return *this;
151151
}
@@ -465,10 +465,10 @@ uint16_t Segment::nrOfVStrips() const {
465465
case M12_pBar:
466466
vLen = virtualWidth();
467467
break;
468-
case M12_sCircle: //WLEDSR
468+
case M12_sCircle: //WLEDMM
469469
vLen = (virtualWidth() + virtualHeight()) / 6; // take third of the average width
470470
break;
471-
case M12_sBlock: //WLEDSR
471+
case M12_sBlock: //WLEDMM
472472
vLen = (virtualWidth() + virtualHeight()) / 8; // take half of the average width
473473
break;
474474
}
@@ -477,7 +477,7 @@ uint16_t Segment::nrOfVStrips() const {
477477
return vLen;
478478
}
479479

480-
//WLEDSR jMap
480+
//WLEDMM jMap
481481
struct XandY {
482482
uint8_t x;
483483
uint8_t y;
@@ -609,15 +609,15 @@ class JMapC {
609609
} //updatejMapDoc
610610
}; //class JMapC
611611

612-
//WLEDSR jMap
612+
//WLEDMM jMap
613613
void Segment::createjMap() {
614614
if (!jMap) {
615615
Serial.println("createjMap");
616616
jMap = new JMapC();
617617
}
618618
}
619619

620-
//WLEDSR jMap
620+
//WLEDMM jMap
621621
void Segment::deletejMap() {
622622
//Should be called from ~Segment but causes crash (and ~Segment is called quite often...)
623623
if (jMap) {
@@ -641,15 +641,15 @@ uint16_t Segment::virtualLength() const {
641641
case M12_pArc:
642642
vLen = max(vW,vH); // get the longest dimension
643643
break;
644-
case M12_jMap: //WLEDSR jMap
644+
case M12_jMap: //WLEDMM jMap
645645
if (jMap)
646646
vLen = ((JMapC *)jMap)->length();
647647
break;
648-
case M12_sCircle: //WLEDSR
648+
case M12_sCircle: //WLEDMM
649649
vLen = max(vW,vH); // get the longest dimension
650650
// vLen = (virtualWidth() + virtualHeight()) * 3;
651651
break;
652-
case M12_sBlock: //WLEDSR
652+
case M12_sBlock: //WLEDMM
653653
if (nrOfVStrips()>1)
654654
vLen = max(vW,vH) * 4;//0.5; // get the longest dimension
655655
else
@@ -665,7 +665,7 @@ uint16_t Segment::virtualLength() const {
665665
return vLength;
666666
}
667667

668-
//WLEDSR used for M12_sBlock
668+
//WLEDMM used for M12_sBlock
669669
void xyFromBlock(uint16_t &x,uint16_t &y, uint16_t i, uint16_t vW, uint16_t vH, uint16_t vStrip) {
670670
float i2;
671671
if (i<=SEGLEN*0.25) { //top, left to right
@@ -691,7 +691,7 @@ void xyFromBlock(uint16_t &x,uint16_t &y, uint16_t i, uint16_t vW, uint16_t vH,
691691

692692
}
693693

694-
void IRAM_ATTR_YN Segment::setPixelColor(int i, uint32_t col) //WLEDSR: IRAM_ATTR conditionaly
694+
void IRAM_ATTR_YN Segment::setPixelColor(int i, uint32_t col) //WLEDMM: IRAM_ATTR conditionaly
695695
{
696696
int vStrip = i>>16; // hack to allow running on virtual strips (2D segment columns/rows)
697697
i &= 0xFFFF;
@@ -723,11 +723,11 @@ void IRAM_ATTR_YN Segment::setPixelColor(int i, uint32_t col) //WLEDSR: IRAM_ATT
723723
for (int x = 0; x <= i; x++) setPixelColorXY(x, i, col);
724724
for (int y = 0; y < i; y++) setPixelColorXY(i, y, col);
725725
break;
726-
case M12_jMap: //WLEDSR jMap
726+
case M12_jMap: //WLEDMM jMap
727727
if (jMap)
728728
((JMapC *)jMap)->setPixelColor(i, col);
729729
break;
730-
case M12_sCircle: //WLEDSR
730+
case M12_sCircle: //WLEDMM
731731
if (vStrip > 0)
732732
{
733733
int x = roundf(sin_t(360*i/SEGLEN*DEG_TO_RAD) * vW * (vStrip+1)/nrOfVStrips());
@@ -737,7 +737,7 @@ void IRAM_ATTR_YN Segment::setPixelColor(int i, uint32_t col) //WLEDSR: IRAM_ATT
737737
else // pArc -> circle
738738
drawArc(vW/2, vH/2, i/2, col);
739739
break;
740-
case M12_sBlock: //WLEDSR
740+
case M12_sBlock: //WLEDMM
741741
if (vStrip > 0)
742742
{
743743
//vStrip+1 is distance from centre, i is how much of the square is filled
@@ -862,11 +862,11 @@ uint32_t Segment::getPixelColor(int i)
862862
// use longest dimension
863863
return vW>vH ? getPixelColorXY(i, 0) : getPixelColorXY(0, i);
864864
break;
865-
case M12_jMap: //WLEDSR jMap
865+
case M12_jMap: //WLEDMM jMap
866866
if (jMap)
867867
return ((JMapC *)jMap)->getPixelColor(i);
868868
break;
869-
case M12_sCircle: //WLEDSR
869+
case M12_sCircle: //WLEDMM
870870
if (vStrip > 0)
871871
{
872872
int x = roundf(sin_t(360*i/SEGLEN*DEG_TO_RAD) * vW * (vStrip+1)/nrOfVStrips());
@@ -876,7 +876,7 @@ uint32_t Segment::getPixelColor(int i)
876876
else
877877
return vW>vH ? getPixelColorXY(i, 0) : getPixelColorXY(0, i);
878878
break;
879-
case M12_sBlock: //WLEDSR
879+
case M12_sBlock: //WLEDMM
880880
if (vStrip > 0)
881881
{
882882
uint16_t x=0,y=0;

wled00/const.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@
9696
#define USERMOD_ID_ANALOG_CLOCK 33 //Usermod "Analog_Clock.h"
9797
#define USERMOD_ID_PING_PONG_CLOCK 34 //Usermod "usermod_v2_ping_pong_clock.h"
9898
#define USERMOD_ID_ADS1115 35 //Usermod "usermod_ads1115.h"
99-
//WLEDSR
99+
//WLEDMM
100100
#define USERMOD_ID_CUSTOMEFFECTS 36 //Usermod "usermod_v2_customeffects.h"
101101
#define USERMOD_ID_WEATHER 37 //Usermod "usermod_v2_weather.h"
102102
#define USERMOD_ID_GAMES 38 //Usermod "usermod_v2_games.h"
@@ -431,7 +431,7 @@
431431
#define HW_PIN_CSSPI SS
432432
#endif
433433

434-
// WLEDSR: IRAM_ATTR for 8266 causes error: section `.text1' will not fit in region `iram1_0_seg'
434+
// WLEDMM: IRAM_ATTR for 8266 causes error: section `.text1' will not fit in region `iram1_0_seg'
435435
// error only in MM, not in upstream... tbd: find out why
436436
#ifdef ARDUINO_ARCH_ESP32
437437
#define IRAM_ATTR_YN IRAM_ATTR

0 commit comments

Comments
 (0)