Updated Add own functionality (markdown)

This commit is contained in:
Aircoookie 2020-01-08 21:51:35 +01:00
parent c6f6b52508
commit e75ac899d3
1 changed files with 4 additions and 3 deletions

View File

@ -5,9 +5,10 @@ Programming is done in the Arduino IDE. There is a special file, `wled06_usermod
(however, if you think your code may be relevant to many users, feel free to code it in directly and open a pull request)
This file has three empty methods:
- `userBeginPreConnection()` is called after loading settings but before connecting to WiFi.
Use it to load custom settings or to specify own server pages with the `server.on()` method.
- `userBegin()` is the main initialization. Use it to start own interfaces (IR, UDP ports, Websockets, GPIOs,...).
- `userSetup()` is called after loading settings but before connecting to WiFi.
Use it to start own interfaces if it does not depend on WiFi (IR, Sensors, GPIOs,...).
Also you can use it to load custom settings or to specify own server pages with the `server.on()` method.
- `userConnected()` is called once WiFi is connected. Use it to connect to external servers or init interfaces using wiFi.
- `userLoop()` is called by the main `loop()` function.
### Modify WLED values