完善V1.4踢乒乓球版本

This commit is contained in:
myperworld committed 2026-01-20 22:15:03 +08:00
1 parent d14fe6c37b
commit 72455a5e76
1864 files changed
+19294 -218

No files matched your search

@@ -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);
}