Macro esp_hal_smartled::smartLedAdapter
source · macro_rules! smartLedAdapter { ( $channel: literal, $buffer_size: literal ) => { ... }; }
Expand description
Macro to generate adapters with an arbitrary buffer size fitting for a
specific number of $buffer_size
LEDs to be addressed.
Attempting to use more LEDs that the buffer is configured for will result in
an LedAdapterError:BufferSizeExceeded
error.