2020-03-25 08:00:55 +00:00
|
|
|
#include "wled.h"
|
2018-02-25 13:46:11 +00:00
|
|
|
/*
|
2020-06-05 22:57:34 +00:00
|
|
|
* This v1 usermod file allows you to add own functionality to WLED more easily
|
2018-02-27 23:27:10 +00:00
|
|
|
* See: https://github.com/Aircoookie/WLED/wiki/Add-own-functionality
|
2020-03-31 00:38:08 +00:00
|
|
|
* EEPROM bytes 2750+ are reserved for your custom use case. (if you extend #define EEPSIZE in const.h)
|
2020-06-05 22:57:34 +00:00
|
|
|
* If you just need 8 bytes, use 2551-2559 (you do not need to increase EEPSIZE)
|
2023-01-06 08:24:29 +00:00
|
|
|
*
|
2020-06-05 22:57:34 +00:00
|
|
|
* Consider the v2 usermod API if you need a more advanced feature set!
|
2018-02-25 13:46:11 +00:00
|
|
|
*/
|
|
|
|
|
2018-05-10 17:55:58 +00:00
|
|
|
//Use userVar0 and userVar1 (API calls &U0=,&U1=, uint16_t)
|
|
|
|
|
2019-10-20 15:38:25 +00:00
|
|
|
//gets called once at boot. Do all initialization that doesn't depend on network here
|
|
|
|
void userSetup()
|
2018-02-25 13:46:11 +00:00
|
|
|
{
|
2023-01-06 08:24:29 +00:00
|
|
|
|
2018-02-25 13:46:11 +00:00
|
|
|
}
|
|
|
|
|
2019-10-20 15:38:25 +00:00
|
|
|
//gets called every time WiFi is (re-)connected. Initialize own network interfaces here
|
|
|
|
void userConnected()
|
2018-02-25 13:46:11 +00:00
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2019-10-20 15:38:25 +00:00
|
|
|
//loop. You can use "if (WLED_CONNECTED)" to check for successful connection
|
2018-02-25 13:46:11 +00:00
|
|
|
void userLoop()
|
|
|
|
{
|
2023-01-06 08:24:29 +00:00
|
|
|
|
2018-02-25 13:46:11 +00:00
|
|
|
}
|