2019-09-25 16:11:03 +00:00
|
|
|
#pragma once
|
2019-05-30 09:12:40 +00:00
|
|
|
|
|
|
|
#include "Effect.h"
|
|
|
|
#include "my_fastled.h"
|
|
|
|
|
|
|
|
class ConfettiEffect : public Effect {
|
2019-06-19 20:17:10 +00:00
|
|
|
protected:
|
|
|
|
virtual CRGB _getColor();
|
|
|
|
public:
|
2019-10-01 04:29:32 +00:00
|
|
|
void loop(uint16_t ms);
|
2019-05-30 09:12:40 +00:00
|
|
|
boolean can_be_shown_with_clock();
|
2019-09-25 16:11:03 +00:00
|
|
|
String get_name() override { return "confetti"; }
|
2019-05-30 09:12:40 +00:00
|
|
|
};
|
|
|
|
|
2019-06-19 20:17:10 +00:00
|
|
|
class RandomConfettiEffect : public ConfettiEffect {
|
|
|
|
protected:
|
|
|
|
CRGB _getColor() override;
|
2019-09-25 16:11:03 +00:00
|
|
|
String get_name() override { return "random_confetti"; }
|
2019-06-19 20:17:10 +00:00
|
|
|
};
|
|
|
|
|