Hi BbkHawk
Here is the code I suggest : it compiles OK but I didn't try it.
#include <FastLED.h>
// Define the array of leds
#define LED_DT 6
#define COLOR_ORDER GRB
#define LED_TYPE WS2812
#define NUM_LEDS 150
uint8_t max_bright = 255;
struct CRGB leds[NUM_LEDS];
int index1;
int index2;
unsigned long initialtime;
void set4leds(int pos) {
leds[pos].setRGB (0, 0, 0);
leds[pos + 1].setRGB (0, 0, 0);
leds[pos + 2].setRGB (0, 0, 0);
leds[pos + 3].setRGB (0, 0, 0);
}
void setup() {
delay (1000);
LEDS.addLeds<LED_TYPE, LED_DT, COLOR_ORDER>(leds, NUM_LEDS);
FastLED.setBrightness(max_bright);
index1 = 0;
index2 = 0;
initialtime = millis();
}
void loop() {
FastLED.clear();
set4leds(index1);
index1 = (index1 + 1) % (NUM_LEDS - 4);
if (millis() - initialtime > 1000) {
set4leds(index2);
index2 = (index2 + 1) % (NUM_LEDS - 4);
}
FastLED.show();
delay (50);
}
However, it's definitely not the same as the example from the website you cited. This should send 4 lit LEDs in the strip, followed by another group of 4 one second later.