| 375 | } |
| 376 | |
| 377 | void CFastLED::delay(unsigned long ms) { |
| 378 | unsigned long start = fl::millis(); |
| 379 | do { |
| 380 | #ifndef FASTLED_ACCURATE_CLOCK |
| 381 | // make sure to allow at least one ms to pass to ensure the clock moves |
| 382 | // forward |
| 383 | fl::delay(1); |
| 384 | #endif |
| 385 | show(); |
| 386 | fl::yield(); |
| 387 | } |
| 388 | while((fl::millis()-start) < ms); |
| 389 | } |
| 390 | |
| 391 | void CFastLED::setTemperature(const CRGB & temp) { |
| 392 | CLEDController *pCur = CLEDController::head(); |