Skip to content

Commit 82dc456

Browse files
committed
Rename Custom Effects to ARTI-FX
1 parent d9c886a commit 82dc456

File tree

14 files changed

+1051
-1050
lines changed

14 files changed

+1051
-1050
lines changed

platformio.ini

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ build_flags = ${common.build_flags} ${esp32c3.build_flags} -D WLED_RELEASE_NAME=
475475
-D CONFIG_LITTLEFS_FOR_IDF_3_2 ; WLEDMM
476476
-D WLED_USE_MY_CONFIG ; WLEDMM
477477
; -D USERMOD_AUDIOREACTIVE ; WLEDMM
478-
-D USERMOD_CUSTOMEFFECTS ; WLEDMM
478+
-D USERMOD_ARTIFX ; WLEDMM
479479
upload_speed = 460800
480480
build_unflags = ${common.build_unflags}
481481
lib_deps = ${esp32c3.lib_deps}
@@ -494,7 +494,7 @@ build_flags = ${common.build_flags} ${esp32s3.build_flags} -D CONFIG_LITTLEFS_F
494494
-D WLED_RELEASE_NAME=ESP32-S3
495495
-D WLED_USE_MY_CONFIG
496496
-D USERMOD_AUDIOREACTIVE
497-
-D USERMOD_CUSTOMEFFECTS
497+
-D USERMOD_ARTIFX
498498
lib_deps = ${esp32s3.lib_deps}
499499
https://github.com/blazoncek/arduinoFFT.git
500500
board_build.partitions = tools/WLED_ESP32_8MB.csv
@@ -611,7 +611,7 @@ build_flags = ${common.build_flags} ${esp32s2.build_flags} -D WLED_RELEASE_NAME
611611
; -D STATUSLED=15
612612
-D WLED_USE_MY_CONFIG
613613
-D USERMOD_AUDIOREACTIVE
614-
-D USERMOD_CUSTOMEFFECTS
614+
-D USERMOD_ARTIFX
615615

616616
lib_deps = ${esp32s2.lib_deps}
617617
https://github.com/blazoncek/arduinoFFT.git
@@ -802,7 +802,7 @@ build_flags_S =
802802
; -D WLED_USE_CIE_BRIGHTNESS_TABLE ;; experimental: use different color / brightness lookup table
803803
-D USERMOD_AUDIOREACTIVE
804804
-D UM_AUDIOREACTIVE_USE_NEW_FFT ; use latest (upstream) FFTLib, instead of older library modified by blazoncek. Slightly faster, more accurate, needs 2KB RAM extra
805-
-D USERMOD_CUSTOMEFFECTS ; WLEDMM usermod
805+
-D USERMOD_ARTIFX ; WLEDMM usermod
806806
; -D WLED_DISABLE_LOXONE
807807
; -D WLED_DISABLE_ALEXA
808808
; -D WLED_DISABLE_HUESYNC
@@ -1063,7 +1063,7 @@ build_flags = ${common.build_flags_esp8266}
10631063
-D WLED_DISABLE_HUESYNC
10641064
-D WLED_DISABLE_LOXONE
10651065
; -D USERMOD_AUDIOREACTIVE
1066-
; -D USERMOD_CUSTOMEFFECTS ; to be done
1066+
; -D USERMOD_ARTIFX ; to be done
10671067
; -UWLED_USE_MY_CONFIG
10681068
-D USERMOD_PIRSWITCH
10691069
-D USERMOD_DALLASTEMPERATURE ;; disabled because it hangs during usermod setup on -S3 (autodetect broken?)
@@ -1128,7 +1128,7 @@ build_flags = ${common.build_flags_esp8266}
11281128
; -D WLED_DEBUG
11291129
; -D WLED_DISABLE_2D
11301130
; -D USERMOD_AUDIOREACTIVE
1131-
; -D USERMOD_CUSTOMEFFECTS ; to be done
1131+
; -D USERMOD_ARTIFX ; to be done
11321132
; -UWLED_USE_MY_CONFIG
11331133
monitor_filters = esp8266_exception_decoder
11341134
; RAM: [====== ] 59.3% (used 48616 bytes from 81920 bytes)
@@ -1151,7 +1151,7 @@ build_flags = ${common.build_flags_esp8266}
11511151
-D WLED_DISABLE_HUESYNC
11521152
-D WLED_DISABLE_LOXONE
11531153
; -D USERMOD_AUDIOREACTIVE
1154-
; -D USERMOD_CUSTOMEFFECTS ; to be done
1154+
; -D USERMOD_ARTIFX ; to be done
11551155
-D USERMOD_PIRSWITCH
11561156
-D USERMOD_DALLASTEMPERATURE ;; disabled because it hangs during usermod setup on -S3 (autodetect broken?)
11571157
-D USERMOD_MULTI_RELAY
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ function populateCEEditor(name, segID)
9393
{
9494
fetchAndExecute((loc?`http://${locip}`:'.') + "/", name + ".wled", function(text)
9595
{
96-
var cn=`Custom Effects Editor<br>
96+
var cn=`ARTI-FX Editor<br>
9797
<i>${name}.wled</i><br>
9898
<textarea class="ceTextarea" id="ceProgramArea">${text}</textarea><br>
9999
<button class="btn infobtn" onclick="toggleCEEditor()">Close</button>
@@ -102,8 +102,8 @@ function populateCEEditor(name, segID)
102102
<button class="btn infobtn" onclick="loadCETemplate('${name}')">Load template</button><br>
103103
<button class="btn infobtn" onclick="downloadGHFile('CE','wledv033.json',true,true)">Download wled json</button>
104104
<button class="btn infobtn" onclick="downloadGHFile('CE','presets.json',true,true)">Download presets.json</button><br>
105-
<button class="btn infobtn" onclick="location.href='https://github.com/MoonModules/WLED-Effects/tree/master/CustomEffects/wled'" type="button">Custom Effects Library</button>
106-
<button class="btn infobtn btn-xs" onclick="location.href='https://mm.kno.wled.ge/moonmodules/custom-effects'" type="button">?</button><br>
105+
<button class="btn infobtn" onclick="location.href='https://github.com/MoonModules/WLED-Effects/tree/master/ARTIFX/wled'" type="button">ARTI-FX Library</button>
106+
<button class="btn infobtn btn-xs" onclick="location.href='https://mm.kno.wled.ge/moonmodules/arti-fx'" type="button">?</button><br>
107107
<br><i>Compile and Run Log</i><br>
108108
<textarea class="ceTextarea" id="ceLogArea"></textarea><br>
109109
<i>Run log > 3 seconds is send to Serial Ouput.</i><br>
@@ -124,7 +124,7 @@ function populateCEEditor(name, segID)
124124
}
125125

126126
function downloadGHFile(url, name, save=false, warn=false) { //Githubfile
127-
if (url == "CE") url = "https://raw.githubusercontent.com/MoonModules/WLED-Effects/master/CustomEffects/wled/";
127+
if (url == "CE") url = "https://raw.githubusercontent.com/MoonModules/WLED-Effects/master/ARTIFX/wled/";
128128
if (url == "HBB") url = "https://raw.githubusercontent.com/MoonModules/WLED-Effects/master/Presets/HB_PresetPack210808_32x32_16seg/Base%20pack/";
129129
if (url == "HBE") url = "https://raw.githubusercontent.com/MoonModules/WLED-Effects/master/Presets/HB_PresetPack210808_32x32_16seg/Effects%20pack/";
130130
if (url == "LM") url = "https://raw.githubusercontent.com/MoonModules/WLED-Effects/master/Ledmaps/";
@@ -167,7 +167,7 @@ function downloadGHFile(url, name, save=false, warn=false) { //Githubfile
167167
function loadCETemplate(name) {
168168
var ceProgramArea = d.getElementById("ceProgramArea");
169169
ceProgramArea.value = `/*
170-
Custom Effects Template
170+
ARTIFX Template
171171
*/
172172
program ${name}
173173
{

usermods/customeffects/usermod_v2_customeffects.h renamed to usermods/artifx/usermod_v2_artifx.h

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
2-
@title Usermod Custom Effects (CE)
3-
@file usermod_v2_customeffects.h
2+
@title Usermod ARTIFX (AF)
3+
@file usermod_v2_artifx.h
44
@date 20220818
55
@author Ewoud Wijma
66
@Copyright (c) 2023 Ewoud Wijma
@@ -17,7 +17,7 @@
1717
ARTI * arti;
1818

1919
//effect function
20-
uint16_t mode_customEffect(void) {
20+
uint16_t mode_ARTIFX(void) {
2121
//tbd: move statics to SEGMENT.data
2222
static bool succesful;
2323
static bool notEnoughHeap;
@@ -99,9 +99,9 @@ uint16_t mode_customEffect(void) {
9999
return FRAMETIME;
100100
}
101101

102-
static const char _data_FX_MODE_CUSTOMEFFECT[] PROGMEM = "⚙️ Custom Effect ☾@Speed,Intensity,Custom 1, Custom 2, Custom 3;!;!;1;mp12=0";
102+
static const char _data_FX_MODE_ARTIFX[] PROGMEM = "⚙️ ARTI-FX ☾@Speed,Intensity,Custom 1, Custom 2, Custom 3;!;!;1;mp12=0";
103103

104-
class CustomEffectsUserMod : public Usermod {
104+
class ARTIFXUserMod : public Usermod {
105105
private:
106106
// strings to reduce flash memory usage (used more than twice)
107107
static const char _name[]; //usermod name
@@ -115,7 +115,7 @@ class CustomEffectsUserMod : public Usermod {
115115

116116
void setup() {
117117
if (!initDone)
118-
strip.addEffect(FX_MODE_CUSTOMEFFECT, &mode_customEffect, _data_FX_MODE_CUSTOMEFFECT);
118+
strip.addEffect(FX_MODE_ARTIFX, &mode_ARTIFX, _data_FX_MODE_ARTIFX);
119119
initDone = true;
120120
enabled = true;
121121
}
@@ -200,9 +200,9 @@ class CustomEffectsUserMod : public Usermod {
200200
*/
201201
uint16_t getId()
202202
{
203-
return USERMOD_ID_CUSTOMEFFECTS;
203+
return USERMOD_ID_ARTIFX;
204204
}
205205
};
206206

207207
// strings to reduce flash memory usage (used more than twice)
208-
const char CustomEffectsUserMod::_name[] PROGMEM = "CustomEffects";
208+
const char ARTIFXUserMod::_name[] PROGMEM = "ARTIFX";

wled00/FX.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@
316316
#define FX_MODE_WAVESINS 184
317317
#define FX_MODE_ROCKTAVES 185
318318
#define FX_MODE_2DAKEMI 186
319-
#define FX_MODE_CUSTOMEFFECT 187 //WLEDMM Custom Effects
319+
#define FX_MODE_ARTIFX 187 //WLEDMM ARTIFX
320320

321321
#define MODE_COUNT 188
322322

wled00/const.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@
133133
#define USERMOD_ID_SHT 39 //Usermod "usermod_sht.h
134134
#define USERMOD_ID_KLIPPER 40 // Usermod Klipper percentage
135135
//WLEDMM
136-
#define USERMOD_ID_CUSTOMEFFECTS 90 //Usermod "usermod_v2_customeffects.h"
136+
#define USERMOD_ID_ARTIFX 90 //Usermod "usermod_v2_artifx.h"
137137
#define USERMOD_ID_WEATHER 91 //Usermod "usermod_v2_weather.h"
138138
#define USERMOD_ID_GAMES 92 //Usermod "usermod_v2_games.h"
139139

wled00/data/index.htm

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
setTimeout(()=>{h.appendChild(l)},100);
5353
</script>
5454
<link rel="stylesheet" href="index.css">
55-
<link rel="stylesheet" href="../../usermods/customeffects/customeffects.css"> <!--WLEDMM Custom Effects -->
55+
<link rel="stylesheet" href="../../usermods/artifx/artifx.css"> <!--WLEDMM ARTIFX -->
5656
</head>
5757
<body>
5858

@@ -393,7 +393,7 @@
393393
</div>
394394
</div>
395395

396-
<!-- WLEDMM Custom Effects -->
396+
<!-- WLEDMM ARTIFX -->
397397
<div id="ceEditor" class="modal">
398398
<div id="kceEditor">Loading...</div><br>
399399
</div>
@@ -413,6 +413,6 @@
413413
</div>
414414
<i id="roverstar" class="icons huge" onclick="setLor(0)">&#xe410;</i><br>
415415
<script src="index.js"></script>
416-
<script src="../../usermods/customeffects/customeffects.js"></script> <!--WLEDMM Custom Effects-->
416+
<script src="../../usermods/artifx/artifx.js"></script> <!--WLEDMM ARTIFX-->
417417
</body>
418418
</html>

wled00/data/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -771,9 +771,9 @@ function populateSegments(s)
771771
<option value="3" ${inst.si==3?' selected':''}>U14_3</option>
772772
</select></div>
773773
</div>`;
774-
//WLEDMM Custom Effects
774+
//WLEDMM ARTIFX
775775
let fxName = eJson.find((o)=>{return o.id==selectedFx}).name;
776-
let cusEff = `<button class="btn" onclick="toggleCEEditor('${inst.n?inst.n:"default"}', ${i})">Custom Effect Editor ☾</button><br>`;
776+
let cusEff = `<button class="btn" onclick="toggleCEEditor('${inst.n?inst.n:"default"}', ${i})">ARTI-FX Editor ☾</button><br>`;
777777
cn += `<div class="seg lstI ${i==s.mainseg ? 'selected' : ''} ${exp ? "expanded":""}" id="seg${i}">
778778
<label class="check schkl">
779779
<input type="checkbox" id="seg${i}sel" onchange="selSeg(${i})" ${inst.sel ? "checked":""}>
@@ -821,7 +821,7 @@ function populateSegments(s)
821821
${!(isM&&staX<mw*mh)?rvXck:''}
822822
${isM&&staX<mw*mh&&stoY-staY>1&&stoX-staX>1?map2D:''}
823823
${s.AudioReactive && s.AudioReactive.on ? "" : sndSim}
824-
${s.CustomEffects && s.CustomEffects.on && fxName.includes("Custom Effect") ? cusEff : ""}
824+
${s.ARTIFX && s.ARTIFX.on && fxName.includes("ARTI-FX") ? cusEff : ""}
825825
<label class="check revchkl" id="seg${i}lbtm">
826826
${isM&&staX<mw*mh?'Transpose':'Mirror effect'}${isM&&staX<mw*mh?
827827
'<input type="checkbox" id="seg'+i+'tp" onchange="setTp('+i+')" '+(inst.tp?"checked":"")+'>':

0 commit comments

Comments
 (0)