FastLED 3.9.15
Loading...
Searching...
No Matches
draw_context.h
Go to the documentation of this file.
1#pragma once
2
3#include "fl/stl/stdint.h"
4#include "fl/stl/span.h"
5
6namespace fl {
7
8class AudioBatch; // forward declaration — pointer only, no include needed
9
11 fl::u32 now;
13 u16 frame_time = 0;
14 float speed = 1.0f;
15 const AudioBatch *audio = nullptr;
17 float speed = 1.0f, const AudioBatch *audio = nullptr)
19 audio(audio) {}
20};
21
22} // namespace fl
Base definition for an LED controller.
Definition crgb.hpp:179
fl::span< CRGB > leds
DrawContext(fl::u32 now, fl::span< CRGB > leds, u16 frame_time=0, float speed=1.0f, const AudioBatch *audio=nullptr)
const AudioBatch * audio
Non-owning. Null when no audio.