Advertisement
EPICKTB21

Config

May 28th, 2022
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.99 KB | None | 0 0
  1. #ifdef CONFIG_TOP
  2. #include "proffieboard_v2_config.h"
  3. #define NUM_BLADES 1
  4. #define NUM_BUTTONS 2
  5. #define VOLUME 1800
  6. const unsigned int maxLedsPerStrip = 144;
  7. #define CLASH_THRESHOLD_G 12.5
  8. #define ENABLE_AUDIO
  9. #define ENABLE_MOTION
  10. #define ENABLE_WS2811
  11. #define ENABLE_SD
  12. #define ENABLE_SSD1306
  13. #define ENABLE_SERIAL
  14. #define DISABLE_DIAGNOSTIC_COMMANDS
  15. #define DISABLE_BASIC_PARSER_STYLES
  16. #define SAVE_STATE
  17. #define NO_REPEAT_RANDOM
  18. #define COLOR_CHANGE_DIRECT
  19. #define IDLE_OFF_TIME 60 * 2 * 1000
  20. #define FETT263_MOTION_WAKE_POWER_BUTTON
  21. #define FETT263_FORCE_PUSH_ALWAYS_ON
  22. #define FETT263_FORCE_PUSH_LENGTH 3
  23. #define FETT263_THRUST_ON
  24. #define FETT263_THRUST_ON_NO_BM
  25. #define FETT263_TWIST_OFF
  26. #define FETT263_EFFECT_BATTERY_LEVEL
  27. #define FETT263_SAY_BATTERY_PERCENT
  28. #define FETT263_SAY_COLOR_LIST
  29. #define FETT263_SAY_COLOR_LIST_CC
  30. #define FETT263_HOLD_BUTTON_LOCKUP
  31. #endif
  32.  
  33.  
  34. #ifdef CONFIG_PROP
  35. #include "../props/saber_fett263_buttons.h"
  36. #endif
  37.  
  38.  
  39.  
  40.  
  41. #ifdef CONFIG_PRESETS
  42.  
  43. Preset presets[] = {
  44.  
  45.  
  46.  
  47.  
  48. {"Battle2;common","Battle2/tracks/Battle2-T.wav",
  49.  
  50. /* copyright Fett263 Simple (Primary Blade) OS6 Style
  51. https://fett263.com/fett263-proffieOS6-style-library.html#Simple
  52. OS6.7 v4.014
  53. Single Style
  54. Base Style: RandomFlicker (Single Color (50%))
  55.  
  56. Base Color: Rgb<0,255,0> (0)
  57.  
  58. --Effects Included--
  59. Ignition Effect: SparkTip Ignition
  60. Retraction Effect: Standard Retraction
  61. Lockup Effect: Intensity Lockup V1, Begin Effect: Real Clash, End Effect: Full Blade Absorb
  62. LightningBlock Effect: Responsive Lightning Block
  63. Drag Effect: Intensity Sparking Drag
  64. Melt Effect: Intensity Melt
  65. Stab Effect: Normal Stab
  66. Clash Effect: Responsive Clash
  67. Battery Level: % Blade (Green to Red)
  68. */
  69. StylePtr<Layers<RandomFlicker<RgbArg<BASE_COLOR_ARG,Rgb<0,255,0>>,Mix<Int<16448>,Black,RgbArg<BASE_COLOR_ARG,Rgb<0,255,0>>>>,TransitionEffectL<TrConcat<TrJoin<TrDelayX<WavLen<>>,TrWipeIn<200>>,AlphaL<RgbArg<STAB_COLOR_ARG,Rgb<255,255,255>>,SmoothStep<IntArg<MELT_SIZE_ARG,28000>,Int<2000>>>,TrWipe<200>>,EFFECT_STAB>,TransitionEffectL<TrConcat<TrInstant,AlphaL<RgbArg<CLASH_COLOR_ARG,Rgb<255,255,255>>,Bump<Scale<BladeAngle<>,Scale<BladeAngle<0,16000>,Sum<IntArg<LOCKUP_POSITION_ARG,20215>,Int<-12000>>,Sum<IntArg<LOCKUP_POSITION_ARG,20215>,Int<10000>>>,Sum<IntArg<LOCKUP_POSITION_ARG,20215>,Int<-10000>>>,Scale<ClashImpactF<>,Int<12000>,Int<60000>>>>,TrFadeX<Scale<ClashImpactF<>,Int<200>,Int<400>>>>,EFFECT_CLASH>,LockupTrL<TransitionEffect<AlphaMixL<Bump<Scale<BladeAngle<>,Scale<BladeAngle<0,16000>,Sum<IntArg<LOCKUP_POSITION_ARG,20215>,Int<-12000>>,Sum<IntArg<LOCKUP_POSITION_ARG,20215>,Int<10000>>>,Sum<IntArg<LOCKUP_POSITION_ARG,20215>,Int<-10000>>>,Scale<SwingSpeed<100>,Int<14000>,Int<18000>>>,BrownNoiseFlickerL<RgbArg<LOCKUP_COLOR_ARG,Rgb<255,255,255>>,Int<200>>,StripesX<Int<1800>,Scale<NoisySoundLevel,Int<-3500>,Int<-5000>>,Mix<Int<6425>,Black,RgbArg<LOCKUP_COLOR_ARG,Rgb<255,255,255>>>,RgbArg<LOCKUP_COLOR_ARG,Rgb<255,255,255>>,Mix<Int<12850>,Black,RgbArg<LOCKUP_COLOR_ARG,Rgb<255,255,255>>>>>,AlphaL<AudioFlicker<RgbArg<LOCKUP_COLOR_ARG,Rgb<255,255,255>>,Mix<Int<10280>,Black,RgbArg<LOCKUP_COLOR_ARG,Rgb<255,255,255>>>>,Bump<Scale<BladeAngle<>,Scale<BladeAngle<0,16000>,Sum<IntArg<LOCKUP_POSITION_ARG,20215>,Int<-12000>>,Sum<IntArg<LOCKUP_POSITION_ARG,20215>,Int<10000>>>,Sum<IntArg<LOCKUP_POSITION_ARG,20215>,Int<-10000>>>,Int<13000>>>,TrJoin<TrDelay<8000>,TrInstant>,TrFade<3000>,EFFECT_LOCKUP_BEGIN>,TrConcat<TrJoin<TrDelay<50>,TrInstant>,Mix<IsLessThan<ClashImpactF<>,Int<26000>>,RgbArg<LOCKUP_COLOR_ARG,Rgb<255,255,255>>,AlphaL<RgbArg<LOCKUP_COLOR_ARG,Rgb<255,255,255>>,Bump<Scale<BladeAngle<>,Scale<BladeAngle<0,16000>,Sum<IntArg<LOCKUP_POSITION_ARG,20215>,Int<-12000>>,Sum<IntArg<LOCKUP_POSITION_ARG,20215>,Int<10000>>>,Sum<IntArg<LOCKUP_POSITION_ARG,20215>,Int<-10000>>>,Scale<ClashImpactF<>,Int<20000>,Int<60000>>>>>,TrFade<300>>,TrConcat<TrInstant,RgbArg<LOCKUP_COLOR_ARG,Rgb<255,255,255>>,TrFade<400>>,SaberBase::LOCKUP_NORMAL>,ResponsiveLightningBlockL<Strobe<RgbArg<LB_COLOR_ARG,Rgb<255,255,255>>,AudioFlicker<RgbArg<LB_COLOR_ARG,Rgb<255,255,255>>,Blue>,50,1>,TrConcat<TrInstant,AlphaL<RgbArg<LB_COLOR_ARG,Rgb<255,255,255>>,Bump<Int<12000>,Int<18000>>>,TrFade<200>>,TrConcat<TrInstant,HumpFlickerL<AlphaL<RgbArg<LB_COLOR_ARG,Rgb<255,255,255>>,Int<16000>>,30>,TrSmoothFade<600>>>,LockupTrL<AlphaL<RandomPerLEDFlickerL<RgbArg<DRAG_COLOR_ARG,Rgb<255,255,255>>>,SmoothStep<IntArg<DRAG_SIZE_ARG,28000>,Int<3000>>>,TrConcat<TrJoin<TrDelay<4000>,TrWipeIn<200>>,AlphaL<BrownNoiseFlickerL<RgbArg<DRAG_COLOR_ARG,Rgb<255,255,255>>,Int<300>>,SmoothStep<IntArg<DRAG_SIZE_ARG,28000>,Int<3000>>>,TrFade<4000>>,TrFade<300>,SaberBase::LOCKUP_DRAG>,LockupTrL<AlphaL<Remap<Scale<RampF,Int<65536>,Int<0>>,StaticFire<Mix<TwistAngle<>,RgbArg<STAB_COLOR_ARG,Rgb<255,24,0>>,RotateColorsX<Int<3000>,RgbArg<STAB_COLOR_ARG,Rgb<255,24,0>>>>,Mix<TwistAngle<>,RotateColorsX<Int<3000>,RgbArg<STAB_COLOR_ARG,Rgb<255,24,0>>>,RotateColorsX<Int<3000>,Mix<Int<12000>,Black,RgbArg<STAB_COLOR_ARG,Rgb<255,24,0>>>>>,0,3,5,3000,10>>,SmoothStep<IntArg<MELT_SIZE_ARG,28000>,Int<4000>>>,TrConcat<TrWipeIn<100>,AlphaL<RgbArg<STAB_COLOR_ARG,Rgb<255,24,0>>,SmoothStep<IntArg<MELT_SIZE_ARG,28000>,Int<4000>>>,TrJoin<TrDelay<4000>,TrFade<300>>,AlphaL<Mix<TwistAngle<>,RgbArg<STAB_COLOR_ARG,Rgb<255,24,0>>,RotateColorsX<Int<3000>,RgbArg<STAB_COLOR_ARG,Rgb<255,24,0>>>>,SmoothStep<IntArg<MELT_SIZE_ARG,28000>,Int<4000>>>,TrFade<4000>>,TrWipe<200>,SaberBase::LOCKUP_MELT>,InOutTrL<TrWipeSparkTipX<RgbArg<IGNITION_COLOR_ARG,Rgb<255,255,255>>,IgnitionTime<200>>,TrWipeInX<RetractionTime<0>>,Black>,TransitionEffectL<TrConcat<TrJoin<TrDelay<2000>,TrWipe<1000>>,AlphaL<Mix<BatteryLevel,Red,Green>,SmoothStep<BatteryLevel,Int<-10>>>,TrWipeIn<1000>>,EFFECT_BATTERY_LEVEL>>>(),
  70.  
  71.  
  72. "Green Normal Blade"
  73.  
  74. },
  75.  
  76.  
  77.  
  78. };
  79. BladeConfig blades[] = {
  80. { 0, WS281XBladePtr<144, bladePin, Color8::GRB, PowerPINS<bladePowerPin2, bladePowerPin3> >(),
  81. CONFIGARRAY(presets) },
  82. };
  83. #endif
  84.  
  85.  
  86.  
  87.  
  88. #ifdef CONFIG_BUTTONS
  89. Button PowerButton(BUTTON_POWER, powerButtonPin, "pow");
  90. Button AuxButton(BUTTON_AUX, auxPin, "aux");
  91. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement