@brief Add an LED to the current batch @param index LED array index to update @param alpha Wave amplitude (0-255) for gradient lookup If the batch is full, automatically flushes before adding.
| 31 | /// |
| 32 | /// If the batch is full, automatically flushes before adding. |
| 33 | void push(fl::u32 index, u8 alpha) { |
| 34 | if (isFull()) { |
| 35 | flush(); |
| 36 | } |
| 37 | mIndices.push_back(index); |
| 38 | mAlphas.push_back(alpha); |
| 39 | } |
| 40 | |
| 41 | /// @brief Check if batch is full |
| 42 | /// @return True if batch has reached maximum size |
no test coverage detected