Rename Custom Effects to ARTI-FX
This commit is contained in:
@@ -93,7 +93,7 @@ function populateCEEditor(name, segID)
|
||||
{
|
||||
fetchAndExecute((loc?`http://${locip}`:'.') + "/", name + ".wled", function(text)
|
||||
{
|
||||
var cn=`Custom Effects Editor<br>
|
||||
var cn=`ARTI-FX Editor<br>
|
||||
<i>${name}.wled</i><br>
|
||||
<textarea class="ceTextarea" id="ceProgramArea">${text}</textarea><br>
|
||||
<button class="btn infobtn" onclick="toggleCEEditor()">Close</button>
|
||||
@@ -102,8 +102,8 @@ function populateCEEditor(name, segID)
|
||||
<button class="btn infobtn" onclick="loadCETemplate('${name}')">Load template</button><br>
|
||||
<button class="btn infobtn" onclick="downloadGHFile('CE','wledv033.json',true,true)">Download wled json</button>
|
||||
<button class="btn infobtn" onclick="downloadGHFile('CE','presets.json',true,true)">Download presets.json</button><br>
|
||||
<button class="btn infobtn" onclick="location.href='https://github.com/MoonModules/WLED-Effects/tree/master/CustomEffects/wled'" type="button">Custom Effects Library</button>
|
||||
<button class="btn infobtn btn-xs" onclick="location.href='https://mm.kno.wled.ge/moonmodules/custom-effects'" type="button">?</button><br>
|
||||
<button class="btn infobtn" onclick="location.href='https://github.com/MoonModules/WLED-Effects/tree/master/ARTIFX/wled'" type="button">ARTI-FX Library</button>
|
||||
<button class="btn infobtn btn-xs" onclick="location.href='https://mm.kno.wled.ge/moonmodules/arti-fx'" type="button">?</button><br>
|
||||
<br><i>Compile and Run Log</i><br>
|
||||
<textarea class="ceTextarea" id="ceLogArea"></textarea><br>
|
||||
<i>Run log > 3 seconds is send to Serial Ouput.</i><br>
|
||||
@@ -124,7 +124,7 @@ function populateCEEditor(name, segID)
|
||||
}
|
||||
|
||||
function downloadGHFile(url, name, save=false, warn=false) { //Githubfile
|
||||
if (url == "CE") url = "https://raw.githubusercontent.com/MoonModules/WLED-Effects/master/CustomEffects/wled/";
|
||||
if (url == "CE") url = "https://raw.githubusercontent.com/MoonModules/WLED-Effects/master/ARTIFX/wled/";
|
||||
if (url == "HBB") url = "https://raw.githubusercontent.com/MoonModules/WLED-Effects/master/Presets/HB_PresetPack210808_32x32_16seg/Base%20pack/";
|
||||
if (url == "HBE") url = "https://raw.githubusercontent.com/MoonModules/WLED-Effects/master/Presets/HB_PresetPack210808_32x32_16seg/Effects%20pack/";
|
||||
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
|
||||
function loadCETemplate(name) {
|
||||
var ceProgramArea = d.getElementById("ceProgramArea");
|
||||
ceProgramArea.value = `/*
|
||||
Custom Effects Template
|
||||
ARTIFX Template
|
||||
*/
|
||||
program ${name}
|
||||
{
|
||||
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
@title Usermod Custom Effects (CE)
|
||||
@file usermod_v2_customeffects.h
|
||||
@title Usermod ARTIFX (AF)
|
||||
@file usermod_v2_artifx.h
|
||||
@date 20220818
|
||||
@author Ewoud Wijma
|
||||
@Copyright (c) 2023 Ewoud Wijma
|
||||
@@ -17,7 +17,7 @@
|
||||
ARTI * arti;
|
||||
|
||||
//effect function
|
||||
uint16_t mode_customEffect(void) {
|
||||
uint16_t mode_ARTIFX(void) {
|
||||
//tbd: move statics to SEGMENT.data
|
||||
static bool succesful;
|
||||
static bool notEnoughHeap;
|
||||
@@ -99,9 +99,9 @@ uint16_t mode_customEffect(void) {
|
||||
return FRAMETIME;
|
||||
}
|
||||
|
||||
static const char _data_FX_MODE_CUSTOMEFFECT[] PROGMEM = "⚙️ Custom Effect ☾@Speed,Intensity,Custom 1, Custom 2, Custom 3;!;!;1;mp12=0";
|
||||
static const char _data_FX_MODE_ARTIFX[] PROGMEM = "⚙️ ARTI-FX ☾@Speed,Intensity,Custom 1, Custom 2, Custom 3;!;!;1;mp12=0";
|
||||
|
||||
class CustomEffectsUserMod : public Usermod {
|
||||
class ARTIFXUserMod : public Usermod {
|
||||
private:
|
||||
// strings to reduce flash memory usage (used more than twice)
|
||||
static const char _name[]; //usermod name
|
||||
@@ -115,7 +115,7 @@ class CustomEffectsUserMod : public Usermod {
|
||||
|
||||
void setup() {
|
||||
if (!initDone)
|
||||
strip.addEffect(FX_MODE_CUSTOMEFFECT, &mode_customEffect, _data_FX_MODE_CUSTOMEFFECT);
|
||||
strip.addEffect(FX_MODE_ARTIFX, &mode_ARTIFX, _data_FX_MODE_ARTIFX);
|
||||
initDone = true;
|
||||
enabled = true;
|
||||
}
|
||||
@@ -200,9 +200,9 @@ class CustomEffectsUserMod : public Usermod {
|
||||
*/
|
||||
uint16_t getId()
|
||||
{
|
||||
return USERMOD_ID_CUSTOMEFFECTS;
|
||||
return USERMOD_ID_ARTIFX;
|
||||
}
|
||||
};
|
||||
|
||||
// strings to reduce flash memory usage (used more than twice)
|
||||
const char CustomEffectsUserMod::_name[] PROGMEM = "CustomEffects";
|
||||
const char ARTIFXUserMod::_name[] PROGMEM = "ARTIFX";
|
||||
Reference in New Issue
Block a user