Share this example!

Share this example with your friends on your favorite profile:

You can easily embed this example to your blog or website by copying the following code:

<iframe style="height: 510px; width: 100%; margin: 10px 0 10px;" allowTransparency="true" src="https://codebender.cc/embed/example/FastLED/ColorPalette" frameborder="0"></iframe>


You can also embed the Serial Monitor section! Just use this HTML code.

<iframe style="height: 510px; width: 100%; margin: 10px 0 10px;" allowTransparency="true" src="https://codebender.cc/embed/serialmonitor" frameborder="0"></iframe>



  • 2018-11-28 Yetti

    Replace BLEND to LINEARBLEND

  • 2016-07-25 tzikis

    not sure what you mean by "Arduino + FastLED version 3.001.001", but I click "Run on Arduino" and it seems to compile just fine

  • 2016-07-25 Yossi WF

    Tzikis.. i did arduino mega and uno
    no compile.. shows that errors

    Arduino + "FastLED version 3.001.001"

  • 2016-07-25 tzikis

    Yossi WF which device are you compiling for? I just used Arduino Uno and it seems to work

  • 2016-07-23 Yossi WF

    Why i got

    Clock:52: error: 'BLEND' was not declared in this scope

    currentBlending = BLEND;

    ^

    C:\Users\ok\Documents\Arduino\Clock\Clock.ino: In function 'void ChangePalettePeriodically()':

    Clock:95: error: 'BLEND' was not declared in this scope

    if( secondHand == 0) { currentPalette = RainbowColors_p; currentBlending = BLEND; }

    ^

    Clock:97: error: 'BLEND' was not declared in this scope

    if( secondHand == 15) { currentPalette = RainbowStripeColors_p; currentBlending = BLEND; }

    ^

    Clock:98: error: 'BLEND' was not declared in this scope

    if( secondHand == 20) { SetupPurpleAndGreenPalette(); currentBlending = BLEND; }

    ^

    Clock:99: error: 'BLEND' was not declared in this scope

    if( secondHand == 25) { SetupTotallyRandomPalette(); currentBlending = BLEND; }

    ^

    Clock:101: error: 'BLEND' was not declared in this scope

    if( secondHand == 35) { SetupBlackAndWhiteStripedPalette(); currentBlending = BLEND; }

    ^

    Clock:102: error: 'BLEND' was not declared in this scope

    if( secondHand == 40) { currentPalette = CloudColors_p; currentBlending = BLEND; }

    ^

    Clock:103: error: 'BLEND' was not declared in this scope

    if( secondHand == 45) { currentPalette = PartyColors_p; currentBlending = BLEND; }

    ^

    Clock:105: error: 'BLEND' was not declared in this scope

    if( secondHand == 55) { currentPalette = myRedWhiteBluePalette_p; currentBlending = BLEND; }

    ^

    exit status 1
    'BLEND' was not declared in this scope

  • 2015-11-20 codebender

    This example was tested on 2016-06-11 and it compiles on Arduino Uno, Arduino Leonardo, Arduino Mega