2019-05-29 22:49:54 +00:00
|
|
|
#ifndef effect_big_clock_H
|
|
|
|
#define effect_big_clock_H
|
|
|
|
|
|
|
|
#include "Effect.h"
|
|
|
|
|
|
|
|
class BigClockEffect : public Effect {
|
2019-06-07 04:24:16 +00:00
|
|
|
private:
|
2019-05-29 22:49:54 +00:00
|
|
|
CRGB color_h = CRGB(0xFF0000);
|
|
|
|
CRGB color_m = CRGB(0x00FF00);
|
|
|
|
CRGB color_colon = CRGB(0xFFFF00);
|
|
|
|
|
|
|
|
void drawNumber(uint8_t number, int x, int y, CRGB color);
|
|
|
|
|
|
|
|
void drawText(char *text, int x, int y, CRGB color);
|
|
|
|
|
2019-06-06 04:42:00 +00:00
|
|
|
const unsigned char* font_char(const unsigned char* font, char c);
|
2019-05-29 22:49:54 +00:00
|
|
|
|
2019-06-06 04:42:00 +00:00
|
|
|
void drawSprite(const unsigned char* sprite, int xOffset, int yOffset, CRGB color);
|
2019-05-29 22:49:54 +00:00
|
|
|
|
2019-06-07 04:24:16 +00:00
|
|
|
public:
|
2019-05-29 22:49:54 +00:00
|
|
|
void loop();
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|