Updated Add own functionality (markdown)
This commit is contained in:
parent
cbb561fe2d
commit
d5681bb06f
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue