pitrix/include/effect_confetti.h

21 lines
403 B
C
Raw Normal View History

#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-05-30 09:12:40 +00:00
void loop();
boolean can_be_shown_with_clock();
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;
String get_name() override { return "random_confetti"; }
2019-06-19 20:17:10 +00:00
};