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);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user