2019-09-25 16:11:03 +00:00
|
|
|
#pragma once
|
2019-05-29 22:49:54 +00:00
|
|
|
|
|
|
|
#include "Effect.h"
|
|
|
|
#include "effects.h"
|
|
|
|
|
|
|
|
class CycleEffect : public Effect {
|
2019-06-07 04:24:16 +00:00
|
|
|
private:
|
2019-06-18 16:09:05 +00:00
|
|
|
Effect* effect = NULL;
|
2019-06-04 03:56:33 +00:00
|
|
|
uint16_t effect_id = -1;
|
2019-05-30 09:26:13 +00:00
|
|
|
unsigned long effectSince = 0;
|
2019-06-07 04:24:16 +00:00
|
|
|
public:
|
2019-06-18 16:09:05 +00:00
|
|
|
CycleEffect();
|
|
|
|
~CycleEffect();
|
2019-05-29 22:49:54 +00:00
|
|
|
void changeEffect();
|
|
|
|
|
|
|
|
boolean can_be_shown_with_clock();
|
|
|
|
boolean clock_as_mask();
|
2019-09-25 16:11:03 +00:00
|
|
|
String get_name() override;
|
2019-05-29 22:49:54 +00:00
|
|
|
|
|
|
|
void loop();
|
|
|
|
};
|