#ifdef CONFIG_PRESETS
// CONFIGURABLE
// Each preset line consists of:
// { "font directory", "sound track", Style },
// Where Style is one of:
// StyleNormalPtr<BaseColor, FlashColor, out millis, in millis>()
// StyleFirePtr<LowHeatColor, HighHeatColor>()
// StyleRainBowPtr<out millis, in millis>()
// StyleStrobePtr<BaseColor, FlashColor, out millis, in millis>()
// &style_charging
// All colors can be specied as three numbers or using one the handy macros above.
// If you wish to have different presets for different blades, copy this array and
// name it something other than "preset", then use the new name inside the blade
// configuration array below. See "simple_presets" and "charging_presets"
// below for examples.
Preset presets[] = {
{ "Boot", "tracks/Ftheme.wav", &style_charging },
{ "Fonts/Graflex7", "Tracks/SIntro.wav",
StylePtr<InOutSparkTip<EASYBLADE(BLUE, WHITE), 300, 800> >() },
{ "Fonts/Graflex4", "Tracks/Ftheme.wav", StyleNormalPtr<CYAN, WHITE, 300, 800>() },
{ "Fonts/MPP", "Tracks/Vader.wav", StyleNormalPtr<RED, Orange, 300, 800>() },
{ "Fonts/Kylo", "Tracks/Kintro.wav", StyleFirePtr<RED, Orange>() },
{ "Fonts/Windu", "Tracks/Cantina.wav",
StylePtr<InOutSparkTip<EASYBLADE(DeepPink, Pink), 300, 800> >() },
{ "Fonts/Yoda1", "Tracks/Cantina.wav",
StylePtr<InOutHelper<EASYBLADE(OnSpark<GREEN>, WHITE), 300, 800> >() },
{ "Fonts/Grievous", "Tracks/Gintro.wav", StyleFirePtr<GREEN, CYAN>() },
{ "Fonts/ROTJ", "Tracks/Cantina.wav", StyleNormalPtr<SpringGreen, Orange, 300, 800>() },
{ "Fonts/MKVI", "Tracks/Cantina.wav", StyleNormalPtr<SteelBlue, Tomato, 300, 800>() },
{ "Fonts/Master", "Tracks/Gintro.wav", StyleNormalPtr<Gradient<RED, BLUE>, Gradient<Orange, CYAN>, 300, 800>() },
{ "Fonts/StandIs", "Tracks/Cantina.wav", StyleRainbowPtr<300, 800>() },
//{ "Fonts", "Tracks/Cantina.wav", &style_pov },
};
//Preset red_presets[] = {
// { "igniter/font2", "tracks/vader.wav", StyleNormalPtr<RED, WHITE, 100, 200>()},
// { "caliban", "tracks/duel.wav", StyleNormalPtr<RED, WHITE, 100, 200>()},
// { "font02", "tracks/cantina.wav", StyleStrobePtr<RED, WHITE, 15, 100, 200>()},
//};
//Preset simple_presets[] = {
// { "font01", "tracks/title.wav", StyleNormalPtr<BLUE, WHITE, 100, 200>() },
// { "font02", "tracks/duel.wav", StyleNormalPtr<BLUE, WHITE, 100, 200>() },
//{ "font02", "tracks/cantina.wav", StyleStrobePtr<BLUE, WHITE, 15, 100, 200>() },
//};
//Preset white_presets[] = {
//{ "font01", "tracks/title.wav", StyleNormalPtr<WHITE, WHITE, 100, 200>() },
//{ "font02", "tracks/duel.wav", StyleNormalPtr<WHITE, WHITE, 100, 200>() },
//{ "font02", "tracks/cantina.wav", StyleStrobePtr<WHITE, WHITE, 15, 100, 200>() },
//};
Preset charging_presets[] = {
{ "charging", "", &style_charging },
};
// CONFIGURABLE
// Each line of configuration should be:
// { blade id resistor ohms, blade, CONFIGARRAY(array of presets) },
// Where "blade", can be one of the following:
// WS2811BladePtr<number of leds, WS2811 configuration flags>()
// SimpleBladePTR<Color of channel 1, color of channel 2, color of channel 3, color of channel 4>()
// All colors can be specied as three numbers or using one the handy macros above.
BladeConfig blades[] = {
#ifdef ENABLE_WS2811
// PL9823 blade, 73 LEDs
{ 3300, WS2811BladePtr<73, WS2811_580kHz>(), CONFIGARRAY(presets) },
// Charging adapter, single PL9823 LED.
{ 10000, WS2811BladePtr<1, WS2811_580kHz>(), CONFIGARRAY(charging_presets) },
// PL9823 blade, 2 LEDs
{ 2200, WS2811BladePtr<2, WS2811_580kHz>(), CONFIGARRAY(presets) },
// For testing (makes the charging blade behave like a normal blade.)
// { 15000, WS2811BladePtr<1, WS2811_580kHz>(), CONFIGARRAY(presets) },
// WS2811 string blade 144 LEDs
//{ 7800, WS2811BladePtr<144, WS2811_ACTUALLY_800kHz | WS2811_GRB>(), CONFIGARRAY(presets) },
#endif
// Simple blue string blade.
//{ 5200, SimpleBladePtr<Blue3mmLED,Blue3mmLED,Blue3mmLED,NoLED>(), CONFIGARRAY(simple_presets) },
// Blue-Blue-White LED star
//{ 20000, SimpleBladePtr<CreeXPE2White, CreeXPE2Blue, CreeXPE2Blue, NoLED>(), CONFIGARRAY(simple_presets) },
// Blue LED string (with green flourescent tube)
//{ 27000, SimpleBladePtr<Blue8mmLED100, Blue8mmLED100, Blue8mmLED100, NoLED>(), CONFIGARRAY(simple_presets) },
// Red LED string
// { 33000, SimpleBladePtr<Red8mmLED100, Red8mmLED100, Red8mmLED100, NoLED>(), CONFIGARRAY(red_presets) },
// 3 x Cree XL-L LED star
//{ 100000, SimpleBladePtr<CreeXPL, CreeXPL, CreeXPL, NoLED>(), CONFIGARRAY(white_presets) },
};
#endif
I am using my 73 LED blade.. I will comment everything out and see if I can get it to work.
So I commented out the battery charge preset and the button work to turn it on and off but the clash does not work.... but clashh will trigger from the serial monitor but not the button... We are getting somewhere.