imported from "final" folder
This commit is contained in:
21
.pio/libdeps/esp01_1m/FastLED/tests/test_fastled.cpp
Normal file
21
.pio/libdeps/esp01_1m/FastLED/tests/test_fastled.cpp
Normal file
@@ -0,0 +1,21 @@
|
||||
|
||||
// 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);
|
||||
}
|
||||
Reference in New Issue
Block a user