Finally, big_clock is working correctly with smoothly moving seconds and stuff. Also, the spacing of the moving seconds is now configurable.
This commit is contained in:
@ -6,10 +6,12 @@ class BigClockEffect : public Effect {
|
||||
private:
|
||||
CRGB _color_font = CRGB(0xAAAAAA);
|
||||
CRGB _color_seconds_light = CRGB(0xFFFF00);
|
||||
CRGB _color_seconds_dark = CRGB(0xFF0000);
|
||||
CRGB _color_seconds_dark = CRGB(0xAA0000);
|
||||
CRGB _color_seconds_moving_light = CRGB(0x666600);
|
||||
CRGB _color_seconds_moving_dark = CRGB(0x660000);
|
||||
|
||||
void _draw_seconds();
|
||||
void _draw_border_pixel(uint8_t second, uint8_t part, CRGB* color);
|
||||
void _draw_border_pixel(accum88 pos, CRGB* color);
|
||||
|
||||
public:
|
||||
void loop(uint16_t ms);
|
||||
|
@ -32,6 +32,10 @@ struct Settings {
|
||||
uint16_t random_count = 32;
|
||||
} matrix;
|
||||
|
||||
struct /* big_clock */ {
|
||||
uint16_t spacing = 5;
|
||||
} big_clock;
|
||||
|
||||
struct /* confetti */ {
|
||||
uint16_t pixels_per_loop = 2;
|
||||
} confetti;
|
||||
@ -75,7 +79,7 @@ struct Settings {
|
||||
uint16_t direction_change = 5;
|
||||
uint16_t slowdown = 2;
|
||||
} snake;
|
||||
|
||||
|
||||
struct /* tv_static */ {
|
||||
uint16_t black_bar_speed = 3500;
|
||||
} tv_static;
|
||||
|
Reference in New Issue
Block a user