// This is a sample configuration file. // This saber has: // o TeensySaber V3 hardware. // o Two buttons // o An XP-E2 RGB LED star. // 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 "v3_config.h" #define NUM_BLADES 1 #define NUM_BUTTONS 2 #define VOLUME 2200 const unsigned int maxLedsPerStrip = 144; #define CLASH_THRESHOLD_G 1.0 #define ENABLE_AUDIO #define ENABLE_MOTION #define ENABLE_WS2811 #define ENABLE_SD #endif #ifdef CONFIG_PRESETS Preset presets[] = { { "TeensySF", "tracks/mars.wav", StyleNormalPtr(), "cyan"}, }; BladeConfig blades[] = { { 0, SimpleBladePtr(), CONFIGARRAY(presets) }, }; #endif #ifdef CONFIG_BUTTONS Button PowerButton(BUTTON_POWER, powerButtonPin, "pow"); Button AuxButton(BUTTON_AUX, auxPin, "aux"); #endif