| 313 | inline fl::u8 getDither() FL_NOEXCEPT { return mSettings.mDitherMode; } |
| 314 | |
| 315 | virtual void* beginShowLeds(int size) FL_NOEXCEPT { |
| 316 | FASTLED_UNUSED(size); |
| 317 | // By default, emit an integer. This integer will, by default, be passed back. |
| 318 | // If you override beginShowLeds() then |
| 319 | // you should also override endShowLeds() to match the return state. |
| 320 | // |
| 321 | // For async led controllers this should be used as a sync point to block |
| 322 | // the caller until the leds from the last draw frame have completed drawing. |
| 323 | // for each controller: |
| 324 | // beginShowLeds(); |
| 325 | // for each controller: |
| 326 | // showLeds(); |
| 327 | // for each controller: |
| 328 | // endShowLeds(); |
| 329 | uintptr_t d = getDither(); |
| 330 | void* out = fl::int_to_ptr<void>(d); |
| 331 | return out; |
| 332 | } |
| 333 | |
| 334 | virtual void endShowLeds(void* data) FL_NOEXCEPT { |
| 335 | // By default recieves the integer that beginShowLeds() emitted. |