Open Gitdeman opened 4 years ago
Hi. Cool project. I have a question. Is it possible add to the sketch a white color glow hour LEDs with a little brightness (brightness variable)? Picture. I think this will help determine the time at night. Best regards.
if you want hours dots all time, add this code in the line 130
for (int i=0; i<NUM_LEDS; i=i+5) // dots of hours and quarters
LEDs[i] = CRGB::Gold;
also if only use dots in night mode, remplace the code
if ( night() && USE_NIGHTCUTOFF == true )
FastLED.setBrightness (NIGHTBRIGHTNESS);
for this.
if ( night() && USE_NIGHTCUTOFF == true ){
for (int i=0; i<NUM_LEDS; i=i+5) // dots of hours and quarters
LEDs[i] = CRGB::Gold;
FastLED.setBrightness (NIGHTBRIGHTNESS);
}
the paramether "GOLD" determine the color for hour dots, i choose this color because the white is used for all hands in the same dot. pd sorry for my bad english
Thank you very much for your reply, tulipy.
for (int i=0; i<NUM_LEDS; i=i+5) // dots of hours and quarters LEDs[i] = CRGB::White;
This code works well.
Is it possible to control the brightness of these Gold pixels or not?
PS. Sorry for my bad english :) I am Russian.
The Brightness is set for all led strip,
Try replace CRGB::Whithe;
For
CHSV( 0, 0, 60);
I don't try this.
The parameters 60 is the brightness
my program level is to basic, equal that my English. (I'm Spanish)
Hi. Cool project. I have a question. Is it possible add to the sketch a white color glow hour LEDs with a little brightness (brightness variable)? Picture. I think this will help determine the time at night. Best regards.