Skip to content

Commit

Permalink
StarMod Leds to StarMod Core (step 1 of 2)
Browse files Browse the repository at this point in the history
app.js:
- rename appName to Demo
- comment userFun contents

index.htm: remove Leds in title and header

pio.ini
- comment STARMOD_APPMOD_LEDS
- comment STARMOD_USERMOD_WLEDAUDIO

Add AddModDemo module

Remove Led Modules

main.cpp
- comment STARMOD_APPMOD_LEDS
- comment STARMOD_USERMOD_WLEDAUDIO
- Add AddModDemo module

remove ArtNet, DDP, WLEDAudio
  • Loading branch information
ewoudwijma committed Apr 4, 2024
1 parent 847b0b7 commit 9772a4c
Show file tree
Hide file tree
Showing 19 changed files with 1,707 additions and 6,857 deletions.
590 changes: 295 additions & 295 deletions data/app.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions data/index.htm
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<html>
<head>
<meta charset="utf-8">
<title>StarMod💫 LEDs 🎨 by MoonModules 🌔</title>
<title>StarMod💫 by MoonModules 🌔</title>
<link rel="stylesheet" href="index.css">
<script src="app.js"></script>
<script src="index.js"></script>
Expand All @@ -35,7 +35,7 @@
<body onload="onLoad()">
<div class="module">
<hgroup>
<h1 style="float: left;">StarMod💫 LEDs 🎨 by MoonModules 🌔</h1>
<h1 style="float: left;">StarMod💫 by MoonModules 🌔</h1>
<a href="https://ewowi.github.io/StarDocs" style="float: right;"></a>
</hgroup>
<br>
Expand Down
32 changes: 16 additions & 16 deletions platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,13 @@ lib_deps =



[STARMOD_APPMOD_LEDS]
build_flags =
-D STARMOD_APPMOD_LEDS
-D STARMOD_USERMOD_ARTNET
-D STARMOD_USERMOD_DDP
lib_deps =
https://github.com/FastLED/[email protected]
; [STARMOD_APPMOD_LEDS]
; build_flags =
; -D STARMOD_APPMOD_LEDS
; -D STARMOD_USERMOD_ARTNET
; -D STARMOD_USERMOD_DDP
; lib_deps =
; https://github.com/FastLED/[email protected]



Expand All @@ -65,11 +65,11 @@ lib_deps =



[STARMOD_USERMOD_WLEDAUDIO]
build_flags =
-D STARMOD_USERMOD_WLEDAUDIO
lib_deps =
https://github.com/netmindz/WLED-sync#48cb28f11632b217f9ccd9f72149373919c28af5 ; sourceIP
; [STARMOD_USERMOD_WLEDAUDIO]
; build_flags =
; -D STARMOD_USERMOD_WLEDAUDIO
; lib_deps =
; https://github.com/netmindz/WLED-sync#48cb28f11632b217f9ccd9f72149373919c28af5 ; sourceIP


[Speed_Flags]
Expand Down Expand Up @@ -97,16 +97,16 @@ build_flags =
${Speed_Flags.build_flags}
-DCONFIG_ASYNC_TCP_USE_WDT=0
-DLFS_THREADSAFE ;; enables use of semaphores in LittleFS driver
${STARMOD_APPMOD_LEDS.build_flags}
; ${STARMOD_APPMOD_LEDS.build_flags}
${STARMOD_USERMOD_E131.build_flags}
; ${STARMOD_USERMOD_HA.build_flags}
${STARMOD_USERMOD_WLEDAUDIO.build_flags}
; ${STARMOD_USERMOD_WLEDAUDIO.build_flags}
lib_deps =
${starmod.lib_deps}
${STARMOD_APPMOD_LEDS.lib_deps}
; ${STARMOD_APPMOD_LEDS.lib_deps}
${STARMOD_USERMOD_E131.lib_deps}
; ${STARMOD_USERMOD_HA.lib_deps}
${STARMOD_USERMOD_WLEDAUDIO.lib_deps}
; ${STARMOD_USERMOD_WLEDAUDIO.lib_deps}


[env:esp32dev]
Expand Down
41 changes: 41 additions & 0 deletions src/App/AppModDemo.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
/*
@title StarMod
@file AppModDemo.h
@date 20240114
@repo https://github.com/ewowi/StarMod
@Authors https://github.com/ewowi/StarMod/commits/main
@Copyright © 2024 Github StarMod Commit Authors
@license GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007
@license For non GPL-v3 usage, commercial licenses must be purchased. Contact [email protected]
*/

class AppModDemo: public SysModule {

public:

AppModDemo() :SysModule("AppMod Demo") {
};

//setup filesystem
void setup() {
SysModule::setup();

parentVar = ui->initAppMod(parentVar, name, 1100);

ui->initText(parentVar, "textField");

}

void loop() {
// SysModule::loop();
}

void onOffChanged() {
if (mdls->isConnected && isEnabled) {
} else {
}
}

};

extern AppModDemo *appModDemo;
Loading

0 comments on commit 9772a4c

Please sign in to comment.