Advertisement
Guest User

added accent and blade styles

a guest
May 2nd, 2022
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 3.52 KB | None | 0 0
  1. #ifdef CONFIG_TOP
  2. #include "proffieboard_v2_config.h"
  3. #define NUM_BLADES 3
  4. #define NUM_BUTTONS 2
  5. #define VOLUME 180
  6. const unsigned int maxLedsPerStrip = 144;
  7. #define CLASH_THRESHOLD_G 10.0
  8. #define ENABLE_AUDIO
  9. #define ENABLE_MOTION
  10. #define ENABLE_WS2811
  11. #define ENABLE_SD
  12. #define IDLE_OFF_TIME 60 * 2 * 1000 //timeout for leds 2 minutes
  13. #endif
  14.  
  15. #ifdef CONFIG_PRESETS
  16. Preset presets[] = {
  17.    { "brother", "tracks/uranus.wav",
  18.     StylePtr<Layers<Stripes<10000,-1700,RotateColorsX<Variation,Rgb<80,0,0>>,RotateColorsX<Variation,Red>,RotateColorsX<Variation,Rgb<128,0,0>>,RotateColorsX<Variation,Rgb<50,0,0>>,RotateColorsX<Variation,Red>>,LockupTrL<Layers<AlphaL<AudioFlickerL<White>,Bump<Scale<BladeAngle<>,Scale<BladeAngle<0,16000>,Int<4000>,Int<26000>>,Int<6000>>,Scale<SwingSpeed<100>,Int<14000>,Int<18000>>>>,AlphaL<White,Bump<Scale<BladeAngle<>,Scale<BladeAngle<0,16000>,Int<4000>,Int<26000>>,Int<6000>>,Int<10000>>>>,TrConcat<TrInstant,White,TrFade<400>>,TrConcat<TrInstant,White,TrFade<400>>,SaberBase::LOCKUP_NORMAL>,ResponsiveLightningBlockL<Strobe<White,AudioFlicker<White,Blue>,50,1>,TrConcat<TrInstant,AlphaL<White,Bump<Int<12000>,Int<18000>>>,TrFade<200>>,TrConcat<TrInstant,HumpFlickerL<AlphaL<White,Int<16000>>,30>,TrSmoothFade<600>>>,ResponsiveStabL<Orange,TrWipeIn<600>,TrWipe<600>>,ResponsiveBlastL<White,Int<400>,Scale<SwingSpeed<200>,Int<100>,Int<400>>,Int<400>>,ResponsiveClashL<White,TrInstant,TrFade<400>,Scale<BladeAngle<0,16000>,Int<4000>,Int<26000>>,Int<6000>,Int<20000>>,LockupTrL<AlphaL<BrownNoiseFlickerL<White,Int<300>>,SmoothStep<Int<30000>,Int<5000>>>,TrWipeIn<400>,TrFade<300>,SaberBase::LOCKUP_DRAG>,LockupTrL<AlphaL<Mix<TwistAngle<>,Rgb<255,200,0>,DarkOrange>,SmoothStep<Int<28000>,Int<5000>>>,TrWipeIn<600>,TrFade<300>,SaberBase::LOCKUP_MELT>,InOutTrL<TrWipe<300>,TrWipeIn<500>,Black>>>(),
  19.     StylePtr<Layers<RotateColorsX<Saw<Int<5>>,Red>,InOutTrL<TrInstant,TrInstant,TransitionLoop<Mix<BatteryLevel,Red,Green>,TrConcat<TrBoing<1200,2>,Mix<Int<1285>,Black,Mix<BatteryLevel,Red,Green>>,TrFade<1200>>>>>>(),
  20.  
  21. StylePtr<Layers<ColorSelect<IntArg<STYLE_OPTION_ARG,0>,TrInstant,Stripes<18000,-1600,RgbArg<BASE_COLOR_ARG,Rgb<0,0,255>>,RandomFlicker<RgbArg<BASE_COLOR_ARG,Rgb<0,0,255>>,Mix<Int<16384>,Black,RgbArg<BASE_COLOR_ARG,Rgb<0,0,255>>>>,RandomFlicker<RgbArg<BASE_COLOR_ARG,Rgb<0,0,255>>,Stripes<9000,-900,RgbArg<BASE_COLOR_ARG,Rgb<0,0,255>>,Mix<Int<7710>,Black,RgbArg<BASE_COLOR_ARG,Rgb<0,0,255>>>>>>,StripesX<Int<1500>,Scale<SlowNoise<Int<2500>>,Int<-3000>,Int<-5000>>,RgbArg<BASE_COLOR_ARG,Rgb<0,0,255>>,Mix<Int<10280>,Black,RgbArg<BASE_COLOR_ARG,Rgb<0,0,255>>>,RgbArg<BASE_COLOR_ARG,Rgb<0,0,255>>,Mix<Int<2570>,Black,RgbArg<BASE_COLOR_ARG,Rgb<0,0,255>>>,RgbArg<BASE_COLOR_ARG,Rgb<0,0,255>>>,Stripes<16000,-1000,RgbArg<BASE_COLOR_ARG,Rgb<0,0,255>>,Pulsing<Mix<Int<11565>,Black,RgbArg<BASE_COLOR_ARG,Rgb<0,0,255>>>,RgbArg<BASE_COLOR_ARG,Rgb<0,0,255>>,800>,RgbArg<BASE_COLOR_ARG,Rgb<0,0,255>>>>,InOutTrL<TrInstant,TrInstant,TransitionLoop<Mix<BatteryLevel,Red,Green>,TrConcat<TrBoing<1200,2>,Mix<Int<1285>,Black,Mix<BatteryLevel,Red,Green>>,TrFade<1200>>>>>>(),},
  22.    
  23. };
  24. BladeConfig blades[] = {
  25.  { 0, WS281XBladePtr<74, bladePin, Color8::GRB, PowerPINS<bladePowerPin2, bladePowerPin3> >(),
  26.     WS281XBladePtr<1, blade2Pin, Color8::GRB, PowerPINS<bladePowerPin4, bladePowerPin5> >(),
  27.     WS281XBladePtr<1, blade4Pin, Color8::GRB, PowerPINS<bladePowerPin6> >()
  28.   , CONFIGARRAY(presets) },
  29. };
  30. #endif
  31.  
  32. #ifdef CONFIG_BUTTONS
  33. Button PowerButton(BUTTON_POWER, powerButtonPin, "pow");
  34. Button AuxButton(BUTTON_AUX, auxPin, "aux");
  35. #endif
  36.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement