21 #include "FastLEDControllerStorage.h"
25 #ifndef LED_CONTROLLER_TIMEOUT
26 #define LED_CONTROLLER_TIMEOUT 30000
47 uint8_t* valuesBuffer[3] = {
nullptr};
52 void (*onUpdateCallback)(void) =
nullptr;
82 virtual void addLEDs(uint8_t channel, CRGB* leds, uint8_t length);
113 void onUpdateHook(uint8_t channel,
void (*callback)(
void));
119 bool trigger_update =
false;
121 ChannelData channelData[CHANNEL_NUM];
123 unsigned long lastUpdate = 0;
124 unsigned long currentUpdate = 0;
126 int applySpeed(
int duration,
const GroupSpeed speed);
151 bool renderRainbowWave(ChannelData& channelData,
LEDGroup& group,
int groupLedCount);
152 bool renderColorShift(ChannelData& channelData,
LEDGroup& group,
int groupLedCount);
153 bool renderColorPulse(ChannelData& channelData,
LEDGroup& group,
int groupLedCount);
154 bool renderColorWave(ChannelData& channelData,
LEDGroup& group,
int groupLedCount);
155 bool renderStatic(ChannelData& channelData,
LEDGroup& group,
int groupLedCount);
156 bool renderTemperature(ChannelData& channelData,
LEDGroup& group,
int groupLedCount);
157 bool renderVisor(ChannelData& channelData,
LEDGroup& group,
int groupLedCount);
158 bool renderMarquee(ChannelData& channelData,
LEDGroup& group,
int groupLedCount);
159 bool renderBlink(ChannelData& channelData,
LEDGroup& group,
int groupLedCount);
160 bool renderSequential(ChannelData& channelData,
LEDGroup& group,
int groupLedCount);
161 bool renderRainbow(ChannelData& channelData,
LEDGroup& group,
int groupLedCount);
163 bool load()
override;
164 bool save()
override;
168 virtual void setLEDColorValues(uint8_t channel, uint8_t color, uint8_t offset,
const uint8_t* values,
169 size_t len)
override;
GroupSpeed
Definition: LEDController.h:84
Definition: FastLEDControllerStorage.h:20
Definition: FastLEDController.h:37
virtual uint8_t getLEDAutodetectionResult(uint8_t channel) override
Definition: FastLEDController.cpp:515
virtual void addLEDs(uint8_t channel, CRGB *leds, uint8_t length)
Definition: FastLEDController.cpp:36
virtual void timeoutAction()
Definition: FastLEDController.cpp:517
FastLEDController(FastLEDControllerStorage *storage)
Definition: FastLEDController.cpp:18
virtual bool updateLEDs()
Definition: FastLEDController.cpp:351
uint8_t getLEDCount(uint8_t channel)
Definition: FastLEDController.cpp:54
virtual void setLEDColorValues(uint8_t channel, uint8_t color, uint8_t offset, const uint8_t *values, size_t len) override
Definition: FastLEDController.cpp:501
virtual void setLEDExternalTemperature(uint8_t channel, uint16_t temp) override
Definition: FastLEDController.cpp:499
int animation_step_count(int duration, int steps)
Definition: FastLEDController.cpp:79
CRGB * getLEDs(uint8_t channel)
Definition: FastLEDController.cpp:47
CRGB randomColor()
Definition: FastLEDController.cpp:88
virtual void triggerLEDUpdate() override
Definition: FastLEDController.cpp:497
int animation_step(int duration, int steps)
Definition: FastLEDController.cpp:74
virtual void clearLEDColorValues(uint8_t channel) override
Definition: FastLEDController.cpp:509
void onUpdateHook(uint8_t channel, void(*callback)(void))
Definition: FastLEDController.cpp:465
Definition: LEDController.h:161
Definition: TemperatureController.h:38
Definition: LEDController.h:114