Hi Everyone,
Just started to use the Arduino, but still a lot to learn i notice.
So i made a pcb and i found a simple tut to let them burn the right color (see below for the simple code).
But now them want to blink or made them loop in different style.
I did try to find something useful, but no luck yet.
Could somebody help me please?
Thank you in advance.
Hereby the simple script.
#include <FastLED.h>
#define LED_PIN 5
#define NUM_LEDS 44
CRGB leds[NUM_LEDS];
void setup() {
FastLED.addLeds<WS2812, LED_PIN, GRB>(leds, NUM_LEDS);
}
void loop(void) {
leds[0] = CRGB(215, 0, 0);
FastLED.show();
delay(200);
leds[1] = CRGB(215, 0, 0);
FastLED.show();
delay(200);
leds[2] = CRGB(215, 215, 0);
FastLED.show();
delay(200);
leds[3] = CRGB(215, 215, 0);
FastLED.show();
delay(200);
leds[4] = CRGB(0, 215, 0);
FastLED.show();
delay(200);
leds[5] = CRGB(215, 0, 0);
FastLED.show();
delay(200);
leds[6] = CRGB(215, 0, 0);
FastLED.show();
delay(200);
leds[7] = CRGB(215, 0, 0);
FastLED.show();
delay(200);
leds[8] = CRGB(215, 215, 0);
FastLED.show();
delay(200);
leds[9] = CRGB(215, 215, 0);
FastLED.show();
delay(200);
leds[10] = CRGB(215, 215, 0);
FastLED.show();
delay(200);
leds[11] = CRGB(215, 215, 0);
FastLED.show();
delay(200);
leds[12] = CRGB(215, 215, 0);
FastLED.show();
delay(200);
leds[13] = CRGB(0, 215, 0);
FastLED.show();
delay(200);
leds[14] = CRGB(0, 215, 0);
FastLED.show();
delay(200);
leds[15] = CRGB(215, 0, 0);;
FastLED.show();
delay(200);
leds[16] = CRGB(215, 0, 0);
FastLED.show();
delay(200);
leds[17] = CRGB(215, 0, 0);
FastLED.show();
delay(200);
leds[18] = CRGB(215, 215, 0);
FastLED.show();
delay(200);
leds[19] = CRGB(0, 215, 0);
FastLED.show();
delay(200);
leds[20] = CRGB(215, 0, 0);
FastLED.show();
delay(200);
leds[21] = CRGB(215, 0, 0);
FastLED.show();
delay(200);
leds[22] = CRGB(215, 0, 0);
FastLED.show();
delay(200);
leds[23] = CRGB(0, 215, 0);
FastLED.show();
delay(200);
leds[24] = CRGB(0, 215, 0);
FastLED.show();
delay(200);
leds[25] = CRGB(215, 215, 0);
FastLED.show();
delay(200);
leds[26] = CRGB(215, 0, 0);
FastLED.show();
delay(200);
leds[27] = CRGB(0, 215, 0);
FastLED.show();
delay(200);
leds[28] = CRGB(215, 215, 0);
FastLED.show();
delay(200);
leds[29] = CRGB(215, 215, 0);
FastLED.show();
delay(200);
leds[30] = CRGB(215, 215, 0);
FastLED.show();
delay(200);
leds[31] = CRGB(215, 0, 0);
FastLED.show();
delay(200);
leds[32] = CRGB(215, 0, 0);
FastLED.show();
delay(200);
leds[33] = CRGB(215, 0, 0);
FastLED.show();
delay(200);
leds[34] = CRGB(0, 215, 0);
FastLED.show();
delay(200);
leds[35] = CRGB(0, 215, 0);
FastLED.show();
delay(200);
leds[36] = CRGB(215, 215, 0);
FastLED.show();
delay(200);
leds[37] = CRGB(215, 215, 0);
FastLED.show();
delay(200);
leds[38] = CRGB(215, 0, 0);
FastLED.show();
delay(200);
leds[39] = CRGB(0, 215, 0);
FastLED.show();
delay(200);
leds[40] = CRGB(0, 215, 0);
FastLED.show();
delay(200);
leds[41] = CRGB(0, 215, 0);
FastLED.show();
delay(200);
leds[42] = CRGB(215, 0, 0);
FastLED.show();
delay(200);
leds[43] = CRGB(0, 215, 0);
FastLED.show();
delay(200);
}