2019-09-25 16:11:03 +00:00
|
|
|
#pragma once
|
2019-05-29 22:49:54 +00:00
|
|
|
|
|
|
|
#include "Effect.h"
|
|
|
|
|
|
|
|
class BigClockEffect : public Effect {
|
2020-04-29 18:19:26 +00:00
|
|
|
protected:
|
2019-09-04 03:59:30 +00:00
|
|
|
CRGB _color_font = CRGB(0xAAAAAA);
|
2019-10-02 04:17:20 +00:00
|
|
|
CRGB _color_seconds_light = CRGB(0xFFFF00);
|
2019-10-11 15:56:18 +00:00
|
|
|
CRGB _color_seconds_dark = CRGB(0xAA0000);
|
|
|
|
CRGB _color_seconds_moving_light = CRGB(0x666600);
|
|
|
|
CRGB _color_seconds_moving_dark = CRGB(0x660000);
|
2020-04-29 18:19:26 +00:00
|
|
|
|
|
|
|
virtual CRGB _get_color_font() { return CRGB(0xAAAAAA); }
|
2019-05-29 22:49:54 +00:00
|
|
|
|
2020-03-29 16:08:54 +00:00
|
|
|
void _draw_seconds(uint8_t seconds);
|
2020-04-29 18:19:26 +00:00
|
|
|
virtual void _draw_border_pixel(accum88 pos, CRGB* color);
|
|
|
|
void _draw_colon(bool odd);
|
2019-06-07 04:24:16 +00:00
|
|
|
public:
|
2020-04-29 18:19:26 +00:00
|
|
|
virtual void loop(uint16_t ms);
|
2019-09-25 16:11:03 +00:00
|
|
|
String get_name() override { return "big_clock"; }
|
2019-05-29 22:49:54 +00:00
|
|
|
};
|