Unwanted blink in a RGB strip led

sorry about that , you are right

here it is :


#include <FastLED.h>
#define DATA_PIN 3
#define CLOCK_PIN 4
#define NUM_LEDS 50
#define LED_COUNT 256
#define COLOR_ORDER GRB
CRGB leds[NUM_LEDS];
int i;
int x;
int colorStep;
int shift_RGB_couple;
int m;
int n;
int p;
int r;
int g;
int b;

void setup(){
FastLED.addLeds<P9813, DATA_PIN, CLOCK_PIN, RGB>(leds, NUM_LEDS);

}
void loop(){

for(shift_RGB_couple=0;shift_RGB_couple<3;shift_RGB_couple++){

for(colorStep=0;colorStep<256;colorStep++){
int m = 255-colorStep;
int n = colorStep;
int p = 0;

if(shift_RGB_couple==0){
r=m;
g=n;
b=p;

}
if(shift_RGB_couple==1){
r=p;
g=m;
b=n;

}
if(shift_RGB_couple==2){
r=n;
g=p;
b=m;

}

for(int x = 0; x < NUM_LEDS; x++){
leds[x] = CRGB(r,g,b);
}
leds*.setRGB( r, g, b);*

  • FastLED.show();*

  • }*

  • }*
    }