Updated Add own functionality (markdown)

This commit is contained in:
Aircoookie 2018-02-25 16:43:32 +01:00
parent cbb561fe2d
commit d5681bb06f
1 changed files with 2 additions and 2 deletions

View File

@ -27,8 +27,8 @@ After updating the color, you must call the `colorUpdated(int)` method. If you w
### Timing
If you'd just like a simple modification that requires timing (like sending a request every 2 seconds), please **never** use the `delay()` function in your `userLoop()`! It will block everything else and WLED will become unresponsive and effects won't work! Instead, try this instead:
```
long lastTime;
```cpp
long lastTime = 0;
int delayMs = 2000; //we want to do something every 2 seconds
void userLoop()