New issue

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

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

Already on GitHub? Sign in to your account

APA102 and fill_rainbow() #674

MorganBarbier opened this Issue Oct 31, 2018 · 1 comment


None yet
2 participants

MorganBarbier commented Oct 31, 2018

Hi everybody,

My first experience with electronic stuff and leds strip! (5m of 30leds/m => 150 leds) ( )

What I see: quickly a rainbow but the blue pixels become either red or green... so it is a mix between green and red.

What I did:
using FastLED v3.2.1

  • -> 5V power Arduino supply
  • -> GND Arduino
    CLK -> pin 5
    DAT -> pin 6
    (5 and 6 to enjoy PWM if necessary...)

Since some colors changed into rainbow I tested different things, one of them is really strange for me:

#include <FastLED.h>

  #define NUM_LEDS 150
  #define DATA_PIN 6
  #define CLOCK_PIN 5


  CRGB leds[NUM_LEDS];

  void setup()

       FastLED.addLeds<APA102, DATA_PIN, CLOCK_PIN, BGR>(leds, NUM_LEDS);
       fill_rainbow(leds, NUM_LEDS, 128);;

  void loop()


and after some seconds some blue leds becames either red either green....

My questions are:

  • is it a bug of FastLED?
  • I did a mistake in electronic?
  • I did a mistake in programming?
  • My LEDs strip is dead?

thank you for your help!!!!


This comment has been minimized.

marmilicious commented Nov 1, 2018

What if you move the fill_rainbow and lines out of setup and into the main loop?

Also, how are you powering your pixels?

Probably not related, but did you run the FastLED RGBCalibrate example here:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment