lmirel / MorphingClockRemix

a remix on the work of HarryFun's MorphingClock
https://www.instructables.com/id/Morphing-Digital-Clock/
78 stars 30 forks source link

Rainbow Effect Clock Digit #10

Closed evilsperm closed 5 years ago

evilsperm commented 5 years ago

I have tried with no success to change the white clock digits to any other color than what the default is in the latest branch. The default white that is set has a nasty rainbow effect when you look at the clock quickly or blink when looking at the clock.

//=== SEGMENTS === int cin = 25; //color intensity

include "Digit.h"

Digit digit0(&display, 0, 63 - 1 - 91, 8, display.color565(0, 0, 255)); Digit digit1(&display, 0, 63 - 1 - 92, 8, display.color565(0, 0, 255)); Digit digit2(&display, 0, 63 - 4 - 93, 8, display.color565(0, 0, 255)); Digit digit3(&display, 0, 63 - 4 - 94, 8, display.color565(0, 0, 255)); Digit digit4(&display, 0, 63 - 7 - 95, 8, display.color565(0, 0, 255)); Digit digit5(&display, 0, 63 - 7 - 96, 8, display.color565(0, 0, 255));

But it looks like it's pulling the digit colors form somewhere else, because changing any of these values does absolutely nothing.

lmirel commented 5 years ago

I overwrite the colours for dimmed day/night mode: //reset digits color digit0.SetColor (cc_gry); digit1.SetColor (cc_gry); digit2.SetColor (cc_gry); digit3.SetColor (cc_gry); digit4.SetColor (cc_gry); digit5.SetColor (cc_gry); digit1.DrawColon (cc_gry); digit3.DrawColon (cc_gry);

evilsperm commented 5 years ago

even setting to: //prep screen for clock display display.fillScreen (0); int cc_blu = display.color565 (0, 0, cin); //reset digits color digit0.SetColor (cc_blu); digit1.SetColor (cc_blu); digit2.SetColor (cc_blu); digit3.SetColor (cc_blu); digit4.SetColor (cc_blu); digit5.SetColor (cc_blu); digit1.DrawColon (cc_blu); digit3.DrawColon (cc_blu); //

Does not change to blue

evilsperm commented 5 years ago

got it to work by changing line 1249 and 1250 int cc_blu = display.color565 (0, 0, cin); int cc_col = cc_blu;

lmirel commented 5 years ago

yep, that's where they get changed for day/night mode