Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Little bright hour leds. #16

Open
Gitdeman opened this issue Apr 24, 2020 · 3 comments
Open

Little bright hour leds. #16

Gitdeman opened this issue Apr 24, 2020 · 3 comments

Comments

@Gitdeman
Copy link

Gitdeman commented Apr 24, 2020

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
Copy link

tulipy commented May 13, 2020

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
Copy link
Author

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
Copy link

tulipy commented May 14, 2020

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)

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants