Fixed big_clock effect and made it a lot nicer with moving pixels for seconds.

This commit is contained in:
2019-09-04 05:59:30 +02:00
parent 1122546853
commit 2ddd77eb5c
2 changed files with 52 additions and 25 deletions

View File

@ -5,17 +5,11 @@
class BigClockEffect : public Effect {
private:
CRGB color_h = CRGB(0xFF0000);
CRGB color_m = CRGB(0x00FF00);
CRGB color_colon = CRGB(0xFFFF00);
CRGB _color_font = CRGB(0xAAAAAA);
CRGB _color_seconds = CRGB(0xFF0000);
void drawNumber(uint8_t number, int x, int y, CRGB color);
void drawText(char *text, int x, int y, CRGB color);
const unsigned char* font_char(const unsigned char* font, char c);
void drawSprite(const unsigned char* sprite, int xOffset, int yOffset, CRGB color);
void _draw_seconds();
void _draw_border_pixel(uint8_t second, CRGB* color);
public:
void loop();