diff --git a/wled00/wled00.ino b/wled00/wled00.ino index 87f2993c1..148122787 100644 --- a/wled00/wled00.ino +++ b/wled00/wled00.ino @@ -30,7 +30,7 @@ #include "WS2812FX.h" //version in format yymmddb (b = daily build) -#define VERSION 1802231 +#define VERSION 1802251 const String versionString = "0.5.0"; //AP and OTA default passwords (change them!) @@ -322,6 +322,7 @@ void loop() { server.handleClient(); handleNotifications(); handleTransitions(); + userLoop(); yield(); handleButton(); handleNetworkTime(); diff --git a/wled00/wled05_init.ino b/wled00/wled05_init.ino index e6e154d49..b58513432 100644 --- a/wled00/wled05_init.ino +++ b/wled00/wled05_init.ino @@ -27,6 +27,7 @@ void wledInit() DEBUG_PRINT("CC: SSID: "); DEBUG_PRINT(clientssid); buildCssColorString(); + userBeginPreConnection(); WiFi.disconnect(); //close old connections @@ -289,6 +290,8 @@ void wledInit() ArduinoOTA.begin(); } + userBegin(); + // Initialize NeoPixel Strip strip.init(); strip.setLedCount(ledcount); diff --git a/wled00/wled06_stringfiles.ino b/wled00/wled06_stringfiles.ino deleted file mode 100644 index c29a33870..000000000 --- a/wled00/wled06_stringfiles.ino +++ /dev/null @@ -1,6 +0,0 @@ -/* - * foo - */ - -String readFromFS(String filename){return "N";}; -void writeToFS(String filename, String file) {}; diff --git a/wled00/wled06_usermod.ino b/wled00/wled06_usermod.ino new file mode 100644 index 000000000..54fe5d539 --- /dev/null +++ b/wled00/wled06_usermod.ino @@ -0,0 +1,20 @@ +/* + * This file allows you to add own functionality to WLED more easily + * + */ + +void userBeginPreConnection() +{ + +} + +void userBegin() +{ + +} + +void userLoop() +{ + +} +