Files

22 lines
503 B
C++

// g++ --std=c++11 test.cpp
#include "test.h"
#include "test.h"
#include "FastLED.h"
#define NUM_LEDS 1000
#define DATA_PIN 2
#define CLOCK_PIN 3
TEST_CASE("Simple") {
static CRGB leds[NUM_LEDS]; // Use static to avoid global constructor warning
FastLED.addLeds<APA102, DATA_PIN, CLOCK_PIN, BGR>(leds, NUM_LEDS);
}
TEST_CASE("Fill Gradient SHORTEST_HUES") {
static CRGB leds[NUM_LEDS];
fill_gradient(leds, 0, CHSV(0, 255, 255), NUM_LEDS - 1, CHSV(96, 255, 255), SHORTEST_HUES);
}