good too early morning! ;-) What I want to do ist a soft change

good too early morning! :wink:

What I want to do ist a soft change between two specific colors. For example from Olive to DarkCyan. And output on singe rgb led (analog with 4 legs). I found the scetch in the h.file - but I don´t know how to define exacty the variables. Can´t be very difficult would I think. But for an autodidact not so easy. :wink:

Here an example of the use. :wink:
green again - but I made blue ones too :wink:

wouldn´t it be nice with soft changing different green´s?
all the best

Jörg

For a better color resolution you should work with the RGB color model, not with HSV. Show us your code (upload @Gist) and we can help you improving the effect. P.S. I see green and blue in you photo. In case it’s easier for you to explain the problem in german - do so because I don’t get the specific question yet.

Hi Stefan!

Thank you for this offer. But I think talking in motherlanguage is not so friendly if some other have the same question/problem. I think you understand what I mean. :wink:

Ok. Here is my problem and what I want to do:

I have rgb analog led´s. And I want to use them because of the price etc. .

I want to create a softfade/change between to specific color (for example Olive to DarkCyan)

Via analog output (example) I managed it to fade a color in, hold it and fade it out. After an short delay the second color. …

So is my problem to fade from Olive to DarkCyan without red or orange. I don´t know how to define the setting for blend like Marc suggested or for gradient - to tell the scetch that the blend is an analog rgb output if you tell me how to I will copy the code (my actually code) - this should be really easier ;)

The leds array contains the RGB data for every single led.
uint8_t red = leds[i].r; gives you the 8 Bit value of red from the led number i. leds[i].g and leds[i].b deliver the other components. This you can use for your analog output. So you don’t call FastLED.show() and use your own output function instead. analogWrite(led_red_Pin, leds[0].r); would write the red value from the first RGB set to the PWM pin.

Helpful?

pleas don´t kill me - here is the scetch
__________________________________________

#include <FastLED.h>

#define REDPIN 3
#define GREENPIN 6
#define BLUEPIN 9

void setup() {
pinMode(REDPIN, OUTPUT);
pinMode(GREENPIN, OUTPUT);
pinMode(BLUEPIN, OUTPUT);}

CRGB blend( const CRGB& p1, const CRGB& p2, fract8 amountOfP2 );

void loop()
{
{showAnalogRGB( CRGB::Olive );}
delay (2000);
{showAnalogRGB( CRGB::DarkCyan );}
}
_________________________________________

i think show analog is not right and the definition of p1m, p2 and amount is missing…

let us share your knowledge our greatness :wink:

DAFUQ?! :wink: It’s hard to guess what you want to do. Is it about a static picture or about a dynamic animation? How many LEDs do you use? I’ve no time today - tomorrow I’ll write you some short example. But I need to know: Is it all about 3 leds - one for red, one for green and one for blue? Is the goal that this one RGB cluster fades between Olive and another color?

kenn ich nicht die Abkürzung :wink: also eine analoge rgb led ( vier Beine/keine WS28xxer) und die die Farbe wechseln lassen von einem Grünton zu einem anderen Günton zum Bsp.) blau geht auch :wink:

Okay, thanks, now I got it (finally) fully. I’ll send you some code tomorrow, when I’m back at my testing setups. http://de.urbandictionary.com/define.php?term=dafuq

that would be great wish you a wonderfull 3. Advent zeih mir gleich die Zipfelmütze auf :wink:

Here you go @Jorg_G , that should do the job: https://gist.github.com/StefanPetrick/06f66cb871160d2a2767
It fades slowly between all kinds of green. The speed you can adjust with the bpm (beats per minute) values. With the upper/lower limits for the basic colors you can define your color range.

Thats look like it could work-I´ll try-thank you for your support and I will let you know if it work :wink:

works fine :wink: that is what I want to do - I don´t understand everything but I will in the future - thank you - I try to upload a little video of the effect …

I’m glad to hear that. Make sure to adjust all parameters according to your wish how it should look and how fast it should change. Looking forward to seeing the video!

yes I do - but my pc is working hard - seems to be over(lasted) - video is just a short one - but if wished I will make longer and more detailed ones :wink: …