Hi there! I´m n newbee.

Hi there!

I´m n newbee. :wink: And I have a problem because of not very much knowlege about programming.

The thing is quite easy I think. Ok. I have an simple rgb led. And I want to fade a self choosen color fade in and out. I declared the three Outputs but I don´t know how to define them as one color that I can fade.

It´s not really a fast led question.
But I hope that is not so dramatically.

Please help me. Some Art objects are waiting for the specified light. :wink:
thanks to everyone

Jörg

Hi Jörg. By “simple rgb LED” do you mean an LED with 4 legs (R,G,B, and a common anode)? If so, have you looked at this example code?

Can you post your code to paste bin?

Hi Marc!
Thanks a lot for your help.
Yes. Your right. I mean the 4 leg analog led. :wink:

Looks like to be that I can use the defined crgb colors like ivory or so to put it out via analog rgb. Thats great. I will make some tests trying to fade in a mixed color, to hold it and fade it out again. :wink:

best wishes to you

Super. Looking forward to some animated rgb versions of your art soon. :slight_smile:

Here I´m back again. :wink:

Some problems appeared.

I wish to drive an analog rgb led (4legs) and fade a special defined color in or from one to another. Perhaps an crgb color to another.

no show like in analog out put-just one or two colors

so how can I change the settings for examlpe in analog output ???

Hello @joerg_G ,

Did you run the sketch (program) suggested by Marc Miller ?

yes-works fine- :wink:
but it don´t solved my problem

what I wish to do is fade a mixed color with a analog led

if possible the defined crgb colors
fade it in or between two colors - not more

sounds pretty easy
for example CRGB::Olive and fade via analog led (4legs)

In the section called void loop()
replace these 2 lines…

 showAnalogRGB( CHSV( hue, 255, 255) );
 delay(20);

with all these lines…

 for (int i=0; i<256; i++){
   showAnalogRGB( CHSV( 0, 255, i) );
   delay(20);
 }
 for (int i=255; i>0; i--) {
   showAnalogRGB( CHSV( 0, 255, i) ); 
   delay(20);
 }

That will slowly fade in and out the color red

change the first value from 0 to anything up to 255 to select another color to fade !!

heureka :wink:

that works well

we nearly solved it

I erased the (color bars) at the end of the code and now it works -thank you very much
:wink:
Ps: is it possible to define the color by keywords?

@joerg_G Look into the FastLED documentation…

At the bottom of this link, there is a list of available color names

yes - I got the colornames from the h-file keywords in the 3.1 version of the github page :wink:

now I had changed the chsv values against the crgb names and it wors super good

thank you again
you make my day :wink: