// This is a sample configuration file. // This saber has: // o Proffieboard V2 hardware. // o Two buttons // o An XP-E2 RGB LED star on LED 4-5-6 // o A dotstar blade on LED 1-2-3 and neopixel data 1 and clock on data 2 // If you have a saber similar to this one, make a copy and use the copy. // This is also the default configuration file. Pre-programmed boards will // use this configuration file. #ifdef CONFIG_TOP #include "proffieboard_v2_config.h" #define NUM_BLADES 2 #define NUM_BUTTONS 2 #define VOLUME 1900 const unsigned int maxLedsPerStrip = 122; #define CLASH_THRESHOLD_G 1.0 #define ENABLE_AUDIO #define ENABLE_MOTION #define ENABLE_WS2811 #define ENABLE_SD #define ENABLE_SSD1306 #define SHARED_POWER_PINS #endif #ifdef CONFIG_PROP #include "../props/saber_sa22c_buttons.h" #endif #ifdef CONFIG_PRESETS Preset presets[] = { { "TeensySF", "tracks/venus.wav", StyleNormalPtr(), StyleNormalPtr(), "cyan"}, { "SmthJedi", "tracks/mars.wav", StylePtr >(), StylePtr >(), "blue"}, { "SmthGrey", "tracks/mercury.wav", StyleFirePtr(), StyleFirePtr(), "fire"}, { "SmthFuzz", "tracks/uranus.wav", StyleNormalPtr(), StyleNormalPtr(), "red"}, { "RgueCmdr", "tracks/venus.wav", StyleFirePtr(), StyleFirePtr(), "blue fire"}, { "TthCrstl", "tracks/mars.wav", StylePtr, WHITE), 300, 800> >(), StylePtr, WHITE), 300, 800> > >(), "green"}, { "TeensySF", "tracks/mercury.wav", StyleNormalPtr(), StyleNormalPtr(), "white"}, { "SmthJedi", "tracks/uranus.wav", StyleNormalPtr, BLUE, 300, 800>(), StyleNormalPtr, BLUE, 300, 800>(), "yellow"}, { "SmthGrey", "tracks/venus.wav", StylePtr >(), StylePtr >(), "magenta"}, { "SmthFuzz", "tracks/mars.wav", StyleNormalPtr, Gradient, 300, 800>(), StyleNormalPtr, Gradient, 300, 800>(), "gradient"}, { "RgueCmdr", "tracks/mercury.wav", StyleRainbowPtr<300, 800>(), StyleRainbowPtr<300, 800>(), "rainbow"}, { "TthCrstl", "tracks/uranus.wav", StyleStrobePtr(), StyleStrobePtr(), "strobe"}, { "TeensySF", "tracks/venus.wav", &style_pov, StyleNormalPtr, Int<1>>, White, Black>, BLACK, 300, 800>(), "POV"}, { "SmthJedi", "tracks/mars.wav", &style_charging, StyleNormalPtr(), "Battery\nLevel"} }; BladeConfig blades[] = { { 0, WS281XBladePtr<122, bladePin, Color8::GRB, PowerPINS > (), WS281XBladePtr<5, blade2Pin, Color8::GRB, PowerPINS >(), CONFIGARRAY(presets) }, }; #endif #ifdef CONFIG_BUTTONS Button PowerButton(BUTTON_POWER, powerButtonPin, "pow"); Button AuxButton(BUTTON_AUX, auxPin, "aux"); #endif