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:
fabian committed 2019-10-11 17:56:18 +02:00
1 parent 377ccc477f
commit 4c611da6d1
4 files changed
+38 -29

No files matched your search

+4 -2
View File
@@ -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);