Added user modification file

This commit is contained in:
cschwinne 2018-02-25 14:46:11 +01:00
parent 9aebaa78fa
commit 1b0d735e50
4 changed files with 25 additions and 7 deletions

View File

@ -30,7 +30,7 @@
#include "WS2812FX.h" #include "WS2812FX.h"
//version in format yymmddb (b = daily build) //version in format yymmddb (b = daily build)
#define VERSION 1802231 #define VERSION 1802251
const String versionString = "0.5.0"; const String versionString = "0.5.0";
//AP and OTA default passwords (change them!) //AP and OTA default passwords (change them!)
@ -322,6 +322,7 @@ void loop() {
server.handleClient(); server.handleClient();
handleNotifications(); handleNotifications();
handleTransitions(); handleTransitions();
userLoop();
yield(); yield();
handleButton(); handleButton();
handleNetworkTime(); handleNetworkTime();

View File

@ -27,6 +27,7 @@ void wledInit()
DEBUG_PRINT("CC: SSID: "); DEBUG_PRINT("CC: SSID: ");
DEBUG_PRINT(clientssid); DEBUG_PRINT(clientssid);
buildCssColorString(); buildCssColorString();
userBeginPreConnection();
WiFi.disconnect(); //close old connections WiFi.disconnect(); //close old connections
@ -289,6 +290,8 @@ void wledInit()
ArduinoOTA.begin(); ArduinoOTA.begin();
} }
userBegin();
// Initialize NeoPixel Strip // Initialize NeoPixel Strip
strip.init(); strip.init();
strip.setLedCount(ledcount); strip.setLedCount(ledcount);

View File

@ -1,6 +0,0 @@
/*
* foo
*/
String readFromFS(String filename){return "N";};
void writeToFS(String filename, String file) {};

20
wled00/wled06_usermod.ino Normal file
View File

@ -0,0 +1,20 @@
/*
* This file allows you to add own functionality to WLED more easily
*
*/
void userBeginPreConnection()
{
}
void userBegin()
{
}
void userLoop()
{
}