leonvandenbeukel / Round-LED-Clock

Wi-Fi connected round LED Clock
Apache License 2.0
134 stars 64 forks source link

Little bright hour leds. #16

Open Gitdeman opened 4 years ago

Gitdeman commented 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.

tulipy commented 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

Gitdeman commented 4 years ago

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.

tulipy commented 4 years ago

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)