Effect big_clock now show the seconds in a calmer way. Divisible-by-5 seconds are in another color.

This commit is contained in:
2019-10-02 06:17:20 +02:00
parent 083564caef
commit f42b5e1034
2 changed files with 41 additions and 7 deletions

View File

@ -5,10 +5,11 @@
class BigClockEffect : public Effect {
private:
CRGB _color_font = CRGB(0xAAAAAA);
CRGB _color_seconds = CRGB(0xFF0000);
CRGB _color_seconds_light = CRGB(0xFFFF00);
CRGB _color_seconds_dark = CRGB(0xFF0000);
void _draw_seconds();
void _draw_border_pixel(uint8_t second, CRGB* color);
void _draw_border_pixel(uint8_t second, uint8_t part, CRGB* color);
public:
void loop(uint16_t ms);