Advertisement
riccrocc789

LEDs working

Oct 25th, 2023 (edited)
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.33 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 100
  6. const unsigned int maxLedsPerStrip = 144;
  7. #define CLASH_THRESHOLD_G 5.0
  8. #define ENABLE_AUDIO
  9. #define ENABLE_MOTION
  10. #define ENABLE_WS2811
  11. #define ENABLE_SD
  12. #define ENABLE_SERIAL
  13. #define DISABLE_DIAGNOSTIC_COMMANDS
  14. #define IDLE_OFF_TIME 60*5*1000
  15. #define SAVE_STATE
  16. #define SPEAK_BLADE_ID
  17. #define ENABLE_ALL_EDIT_OPTIONS
  18. #define FETT263_EDIT_MODE_MENU
  19. #define DISABLE_BASIC_PARSER_STYLES
  20. #define DISABLE_DIAGNOSTIC_COMMANDS
  21. #define FETT263_SAY_COLOR_LIST
  22. #define FETT263_SAY_COLOR_LIST_CC
  23. #define FETT263_HOLD_BUTTON_OFF
  24. #define FETT263_TWIST_OFF
  25. #define FETT263_THRUST_ON
  26. #define FETT263_FORCE_PUSH_ALWAYS_ON
  27. #define FETT263_SAY_BATTERY_PERCENT
  28. #endif
  29.  
  30. #ifdef CONFIG_PROP
  31. #include "../props/saber_fett263_buttons.h"
  32. #endif
  33.  
  34. #ifdef CONFIG_PRESETS
  35. Preset presets[] = {
  36. { "Tusken;common", "common/tracks/venus.wav",
  37. /* copyright Fett263 Rotoscope (Primary Blade) OS6 Style
  38. https://fett263.com/fett263-proffieOS6-style-library.html#Rotoscope
  39. OS6.6 v3.05
  40. Single Style
  41. Base Style: Hyper Responsive Rotoscope (Original Trilogy)
  42.  
  43.  
  44. --Effects Included--
  45. Ignition Effect: Standard Ignition
  46. Retraction Effect: Standard Retraction
  47. Lockup Effect: Responsive Lockup, Begin Effect: Real Clash, End Effect: Full Blade Absorb
  48. LightningBlock Effect: Responsive Lightning Block
  49. Drag Effect: Intensity Fire Drag
  50. Melt Effect: Responsive Melt
  51. Stab Effect: Sparking Stab
  52. Blast Effect: Responsive Blast Fade (Large)
  53. Clash Effect: Responsive Clash
  54. */
  55. StylePtr<Layers<Mix<HoldPeakF<SwingSpeed<250>,Scale<SwingAcceleration<100>,Int<50>,Int<500>>,Scale<SwingAcceleration<>,Int<20000>,Int<10000>>>,RandomFlicker<StripesX<Int<15000>,Scale<HoldPeakF<SwingSpeed<200>,Scale<SwingAcceleration<100>,Int<50>,Int<300>>,Scale<SwingAcceleration<100>,Int<24000>,Int<16000>>>,Int<-3200>,Int<-200>>,RgbArg<BASE_COLOR_ARG,Rgb<2,72,255>>,RgbArg<BASE_COLOR_ARG,Rgb<2,72,255>>,Mix<Int<7710>,Black,RgbArg<BASE_COLOR_ARG,Rgb<2,72,255>>>,RgbArg<BASE_COLOR_ARG,Rgb<2,72,255>>,Mix<Int<19276>,Black,RgbArg<BASE_COLOR_ARG,Rgb<2,72,255>>>>,RgbArg<BASE_COLOR_ARG,Rgb<2,72,255>>>,RgbArg<BASE_COLOR_ARG,Rgb<2,72,255>>>,TransitionEffectL<TrConcat<TrJoin<TrDelayX<WavLen<>>,TrWipeIn<200>>,AlphaL<RandomPerLEDFlickerL<RgbArg<STAB_COLOR_ARG,Rgb<255,187,108>>>,SmoothStep<IntArg<MELT_SIZE_ARG,26000>,Int<2000>>>,TrWipe<200>>,EFFECT_STAB>,MultiTransitionEffectL<TrConcat<TrInstant,AlphaMixL<Bump<Scale<BladeAngle<>,Int<28000>,Int<8000>>,Int<14000>>,RgbArg<BLAST_COLOR_ARG,Rgb<255,0,0>>,Mix<Int<16384>,Black,RgbArg<BLAST_COLOR_ARG,Rgb<255,0,0>>>>,TrFade<300>>,EFFECT_BLAST>,TransitionEffectL<TrConcat<TrInstant,AlphaL<RgbArg<CLASH_COLOR_ARG,Rgb<255,187,108>>,Bump<Scale<BladeAngle<>,Scale<BladeAngle<0,16000>,Sum<IntArg<LOCKUP_POSITION_ARG,18641>,Int<-12000>>,Sum<IntArg<LOCKUP_POSITION_ARG,18641>,Int<10000>>>,Sum<IntArg<LOCKUP_POSITION_ARG,18641>,Int<-10000>>>,Scale<ClashImpactF<>,Int<12000>,Int<60000>>>>,TrFadeX<Scale<ClashImpactF<>,Int<200>,Int<400>>>>,EFFECT_CLASH>,LockupTrL<AlphaMixL<Bump<Scale<BladeAngle<>,Scale<BladeAngle<0,16000>,Sum<IntArg<LOCKUP_POSITION_ARG,18641>,Int<-12000>>,Sum<IntArg<LOCKUP_POSITION_ARG,18641>,Int<10000>>>,Scale<SwingSpeed<100>,Int<14000>,Int<18000>>>>,AudioFlickerL<RgbArg<LOCKUP_COLOR_ARG,Rgb<255,187,108>>>,BrownNoiseFlickerL<RgbArg<LOCKUP_COLOR_ARG,Rgb<255,187,108>>,Int<200>>>,TrConcat<TrInstant,RgbArg<LOCKUP_COLOR_ARG,Rgb<255,187,108>>,TrFade<400>>,TrConcat<TrInstant,RgbArg<LOCKUP_COLOR_ARG,Rgb<255,187,108>>,TrFade<400>>,SaberBase::LOCKUP_NORMAL>,ResponsiveLightningBlockL<Strobe<RgbArg<LB_COLOR_ARG,Rgb<80,50,210>>,AudioFlicker<RgbArg<LB_COLOR_ARG,Rgb<80,50,210>>,Blue>,50,1>,TrConcat<TrInstant,AlphaL<RgbArg<LB_COLOR_ARG,Rgb<80,50,210>>,Bump<Int<12000>,Int<18000>>>,TrFade<200>>,TrConcat<TrInstant,HumpFlickerL<AlphaL<RgbArg<LB_COLOR_ARG,Rgb<80,50,210>>,Int<16000>>,30>,TrSmoothFade<600>>>,LockupTrL<AlphaL<Stripes<2000,4000,RgbArg<DRAG_COLOR_ARG,Rgb<255,187,108>>,Mix<Sin<Int<50>>,Black,RgbArg<DRAG_COLOR_ARG,Rgb<255,187,108>>>,Mix<Int<4096>,Black,RgbArg<DRAG_COLOR_ARG,Rgb<255,187,108>>>>,SmoothStep<IntArg<DRAG_SIZE_ARG,26000>,Int<3000>>>,TrConcat<TrJoin<TrDelay<4000>,TrWipeIn<200>>,AlphaL<Stripes<2000,3000,RgbArg<DRAG_COLOR_ARG,Rgb<255,187,108>>,Mix<Sin<Int<30>>,Black,RgbArg<DRAG_COLOR_ARG,Rgb<255,187,108>>>,Mix<Int<8192>,Black,RgbArg<DRAG_COLOR_ARG,Rgb<255,187,108>>>>,SmoothStep<IntArg<DRAG_SIZE_ARG,26000>,Int<3000>>>,TrFade<4000>>,TrFade<300>,SaberBase::LOCKUP_DRAG>,LockupTrL<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,26000>,Int<4000>>>,TrConcat<TrWipeIn<100>,AlphaL<RgbArg<STAB_COLOR_ARG,Rgb<255,24,0>>,SmoothStep<IntArg<MELT_SIZE_ARG,26000>,Int<4000>>>,TrFade<300>>,TrWipe<200>,SaberBase::LOCKUP_MELT>,InOutTrL<TrWipeX<IgnitionTime<400>>,TrWipeInX<RetractionTime<400>>,Black>>>(),
  56.  
  57. /* copyright Fett263 (Accent LED / PCB) OS6 Style
  58. https://fett263.com/fett263-proffieOS6-style-library.html#Rotoscope
  59. OS6.7 v4.017
  60. Single Style
  61. On Behavior: Blinking On-Off
  62. Off Behavior: Slow Pulse Off-On
  63.  
  64. Base Color: Rgb<255,0,0> (0)
  65.  
  66. --Effects Included--
  67. Ignition Effect: Instant
  68. Retraction Effect: Instant
  69. */
  70. StylePtr<Layers<Blinking<RgbArg<BASE_COLOR_ARG,Rgb<255,0,0>>,Black,500,500>,InOutTrL<TrInstant,TrInstant,Pulsing<Black,RgbArg<OFF_COLOR_ARG,Rgb<255,0,0>>,8000>>>>(),
  71.  
  72. /* copyright Fett263 (Accent LED / PCB) OS6 Style
  73. https://fett263.com/fett263-proffieOS6-style-library.html#Rotoscope
  74. OS6.7 v4.017
  75. Single Style
  76. On Behavior: Blinking Off-On
  77. Off Behavior: Fast Pulse Off-On
  78.  
  79. Base Color: Rgb<0,255,0> (0)
  80.  
  81. --Effects Included--
  82. Ignition Effect: Instant
  83. Retraction Effect: Instant
  84. */
  85. StylePtr<Layers<Blinking<Black,RgbArg<BASE_COLOR_ARG,Rgb<0,255,0>>,500,500>,InOutTrL<TrInstant,TrInstant,Pulsing<Black,RgbArg<OFF_COLOR_ARG,Rgb<0,255,0>>,2000>>>>(),
  86. "Tusken"},
  87.  
  88. { "Batt00;common", "common/tracks/mars.wav",
  89. &style_charging,
  90. /* copyright Fett263 (Accent LED / PCB) OS6 Style
  91. https://fett263.com/fett263-proffieOS6-style-library.html#Rotoscope
  92. OS6.7 v4.017
  93. Single Style
  94. On Behavior: Blinking On-Off
  95. Off Behavior: Slow Pulse Off-On
  96.  
  97. Base Color: Rgb<255,0,0> (0)
  98.  
  99. --Effects Included--
  100. Ignition Effect: Instant
  101. Retraction Effect: Instant
  102. */
  103. StylePtr<Layers<Blinking<RgbArg<BASE_COLOR_ARG,Rgb<255,0,0>>,Black,500,500>,InOutTrL<TrInstant,TrInstant,Pulsing<Black,RgbArg<OFF_COLOR_ARG,Rgb<255,0,0>>,8000>>>>(),
  104.  
  105. /* copyright Fett263 (Accent LED / PCB) OS6 Style
  106. https://fett263.com/fett263-proffieOS6-style-library.html#Rotoscope
  107. OS6.7 v4.017
  108. Single Style
  109. On Behavior: Blinking Off-On
  110. Off Behavior: Fast Pulse Off-On
  111.  
  112. Base Color: Rgb<0,255,0> (0)
  113.  
  114. --Effects Included--
  115. Ignition Effect: Instant
  116. Retraction Effect: Instant
  117. */
  118. StylePtr<Layers<Blinking<Black,RgbArg<BASE_COLOR_ARG,Rgb<0,255,0>>,500,500>,InOutTrL<TrInstant,TrInstant,Pulsing<Black,RgbArg<OFF_COLOR_ARG,Rgb<0,255,0>>,2000>>>>(),
  119. "Battery\nLevel"}
  120. };
  121. BladeConfig blades[] = {
  122. { 0, WS281XBladePtr<144, bladePin, Color8::GRB, PowerPINS<bladePowerPin2, bladePowerPin3> >(),
  123. SimpleBladePtr<CH1LED, NoLED, NoLED, NoLED, bladePowerPin4, -1, -1, -1>(),
  124. SimpleBladePtr<CH2LED, NoLED, NoLED, NoLED, bladePowerPin5, -1, -1, -1>(),
  125. CONFIGARRAY(presets) },
  126. };
  127. #endif
  128.  
  129. #ifdef CONFIG_BUTTONS
  130. Button PowerButton(BUTTON_POWER, powerButtonPin, "pow");
  131. Button AuxButton(BUTTON_AUX, auxPin, "aux");
  132. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement