pitrix/include/effect_cycle.h
Fabian Schlenz 382631d7d7 Effect#loop now gets the time since the last run of the loop in ms. This enables
the effects to show animations that stay fluid independent of the current frame rate.
2019-10-01 06:29:32 +02:00

22 lines
391 B
C++

#pragma once
#include "Effect.h"
#include "effects.h"
class CycleEffect : public Effect {
private:
Effect* effect = NULL;
uint16_t effect_id = -1;
unsigned long effectSince = 0;
public:
CycleEffect();
~CycleEffect();
void changeEffect();
boolean can_be_shown_with_clock();
boolean clock_as_mask();
String get_name() override;
void loop(uint16_t ms);
};