Hello all, I have a question on how to use 2 different types of

Hello all, I have a question on how to use 2 different types of code from Fast LED. I want to use the Colorpalette for a specific amount of time then I want to use a code that I wrote myself that does not use palettes. is this possible. How would I do that?

Since everything you do with FastLED revolves around assigning values to CRGB or CHSV objects, it should be as simple as changing how you assign values to your array. That is all the palette functions do. It should be very easy to do what you want to do.

Here is the code I need Used in the Palette Function. I’m not sure what to change.

http://pastebin.com/raw/bgEattpE

That code is very simple. What exactly are you trying to accomplish?

Im trying to incorporate that into the Palette Function. I want that code to run in the Stock Palette code that is in the Fast LED Library.

Maybe someone else can see what I’m missing, but if the code works, even though it isn’t very pretty, why change it? To use the palette functions, you would make a palette from those colors, then incorporate the specific function. Is your question about how palette functions work? Your colors sort of fit well into a palette, and using ColorFromPalette with a for loop would work well.

Well I don’t want to change the more simple code, it does work as intended, however I can’t Plug that code into the Palette Code without an error. My problem is How Do I get that code to work inside the palette code or vice versa.
I will Try to post a video so you can see what that code does.

while(palette_fill)
{
// code that fills or uses palette
}

while(!palette_fill)
{
//code that fills or uses HSV/RGB
}

Change wherever/whenever you want to use palette vs hsv/rgb.

Rudimentary but it will work.

Thanks @Jarrod_Wagner I’m still new to writing this code… could you provide me with an example please of how and where I would use that option. Once again Thanks a Ton!

@Erin_Jordan Here ya go!

http://pastebin.com/GWUpFWxY

Based on what I was able to interpret from your code snippet, this should look pretty darn close.

Thanks a Ton Will Start to study this later today!!!

@Jarrod_Wagner Thanks for your example it is Great. I had a question about the direction the LEDS run the sequence. The Palette Function runs one way and the simple pattern runs the other. How can I make the simple pattern switch directions? Thanks a Ton!