2020-03-25 09:00:55 +01:00
|
|
|
#include "wled.h"
|
2018-02-25 14:46:11 +01:00
|
|
|
/*
|
|
|
|
* This file allows you to add own functionality to WLED more easily
|
2018-02-28 00:27:10 +01:00
|
|
|
* See: https://github.com/Aircoookie/WLED/wiki/Add-own-functionality
|
2020-03-30 14:03:55 +02:00
|
|
|
* EEPROM bytes 2750+ are reserved for your custom use case. (if you extend #define EEPSIZE in wled_eeprom.h)
|
2019-03-13 11:13:03 +01:00
|
|
|
* bytes 2400+ are currently ununsed, but might be used for future wled features
|
2018-02-25 14:46:11 +01:00
|
|
|
*/
|
|
|
|
|
2018-05-10 19:55:58 +02:00
|
|
|
//Use userVar0 and userVar1 (API calls &U0=,&U1=, uint16_t)
|
|
|
|
|
2019-10-20 17:38:25 +02:00
|
|
|
//gets called once at boot. Do all initialization that doesn't depend on network here
|
|
|
|
void userSetup()
|
2018-02-25 14:46:11 +01:00
|
|
|
{
|
2018-05-10 19:55:58 +02:00
|
|
|
|
2018-02-25 14:46:11 +01:00
|
|
|
}
|
|
|
|
|
2019-10-20 17:38:25 +02:00
|
|
|
//gets called every time WiFi is (re-)connected. Initialize own network interfaces here
|
|
|
|
void userConnected()
|
2018-02-25 14:46:11 +01:00
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2019-10-20 17:38:25 +02:00
|
|
|
//loop. You can use "if (WLED_CONNECTED)" to check for successful connection
|
2018-02-25 14:46:11 +01:00
|
|
|
void userLoop()
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|