#include <FastLED.h>
#define DELAY_TIME 5000
#define WS_LEDS_PIN 5
#define NUM_LEDS 144
#define BRIGHTNESS 0xFF
#define COLOR_ORDER GRB
#define CHIPSET WS2812B
CRGB leds[NUM_LEDS];
CRGB colors[] = {
CRGB::Red,
CRGB::Green,
CRGB::Blue,
CRGB::White
};
void setup()
{
Serial.begin(115200);
FastLED.addLeds<CHIPSET, WS_LEDS_PIN, COLOR_ORDER>(leds, NUM_LEDS).setCorrection( TypicalLEDStrip );
FastLED.setBrightness( BRIGHTNESS );
fill_solid( leds, NUM_LEDS, CRGB::Black);
FastLED.show();
Serial.println("Test consumption");
}
void loop()
{
static unsigned int i = 0;
fill_solid( leds, NUM_LEDS, colors[i++] );
FastLED.show();
if( i >= sizeof( colors ) )
i = 0;
delay(DELAY_TIME);
}