Updated Add own functionality (markdown)

master
Aircoookie 2018-02-25 16:43:32 +01:00
rodzic cbb561fe2d
commit d5681bb06f
1 zmienionych plików z 2 dodań i 2 usunięć

@ -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()