NoSloppy

Untitled

Aug 28th, 2020
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 25.45 KB | None | 0 0
  1. //Marcus_configV3.h
  2.  
  3. #ifdef CONFIG_TOP
  4. #include "proffieboard_config.h"
  5. #define NUM_BLADES 3
  6. #define NUM_BUTTONS 2
  7. #define VOLUME 1500
  8. const unsigned int maxLedsPerStrip = 144;
  9. #define CLASH_THRESHOLD_G 1.9
  10. #define ENABLE_AUDIO
  11. #define ENABLE_MOTION
  12. #define ENABLE_WS2811
  13. #define ENABLE_SD
  14. #define ENABLE_SSD1306
  15. #define SHARED_POWER_PINS
  16. #define SAVE_STATE
  17. #define ORIENTATION ORIENTATION_USB_TOWARDS_BLADE
  18. //#define KEEP_SAVEFILES_WHEN_PROGRAMMING // presets.ini/tmp are ignored after reprogramming unless this is defined
  19. #define SA22C_NO_LOCKUP_HOLD // Hold AUX and do Clash. Comment this out for hold AUX to Lockup.
  20. #define DISABLE_DIAGNOSTIC_COMMANDS
  21. #define IDLE_OFF_TIME 60*5*1000
  22. #define MOTION_TIMEOUT 60 * 15 * 1000
  23. #endif
  24. //----------------------------------------------------------------------------------------------------------------------------------------
  25.  
  26. #ifdef CONFIG_PROP
  27. #include "../props/saber_BC_buttons4x.h"
  28. #endif
  29.  
  30.  
  31.  
  32. #ifdef CONFIG_PRESETS
  33.  
  34. Preset presets[] = {
  35.  
  36.  
  37. //----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  38.  
  39. // same ColorChange<A, B, C> style, 30 presets same font
  40.  
  41.  
  42. { "testfont1;common", "",
  43.  
  44. StylePtr<Layers<
  45. // Main Blade Color/Styles Base
  46. ColorChange<TrFade<1000>,Red,Yellow,Green,Cyan,Blue,Magenta,White,OrangeRed,LightYellow,SpringGreen,Aquamarine,DeepSkyBlue>,
  47. // 3-Layer Lockup Bump for less gradient fade. SmoothStep mask follows blade color
  48. LockupTrL<Layers<
  49. Sparkle<RandomPerLEDFlicker<Red,Black>,White,300,500>,
  50. // Tip side mask
  51. AlphaL<ColorChange<TrFade<1000>,OrangeRed,LightYellow,SpringGreen,Aquamarine,DeepSkyBlue,Red,Yellow,Green,Cyan,Blue,Magenta,White>,
  52. SmoothStep<Scale<BladeAngle<>,Int<26500>,Int<12500>>,Int<2000>>>,
  53. // Hilt side mask
  54. AlphaL<ColorChange<TrFade<1000>,OrangeRed,LightYellow,SpringGreen,Aquamarine,DeepSkyBlue,Red,Yellow,Green,Cyan,Blue,Magenta,White>,
  55. SmoothStep<Scale<BladeAngle<>,Int<17500>,Int<3500>>,Int<-2000>>>>,TrInstant,TrInstant,SaberBase::LOCKUP_NORMAL>,
  56. LockupTrL<AlphaL<AudioFlicker<BrownNoiseFlicker<Strobe<Black,OrangeRed,20,25>,Yellow,400>,Rgb<180,180,180>>,Bump<Scale<BladeAngle<>,Int<22000>,Int<8000>>,Int<8000>>>,TrInstant,TrInstant,SaberBase::LOCKUP_NORMAL>,
  57. LockupTrL<AlphaL<BlinkingX<Yellow,BlinkingX<Rgb<255,20,20>,White,Int<150>,Scale<SlowNoise<Int<3000>>,Int<250>,Int<750>>>,Int<150>,Scale<SlowNoise<Int<3000>>,Int<100>,Int<900>>>,Bump<Scale<BladeAngle<>,Int<22000>,Int<8000>>,Int<2000>>>,TrConcat<TrInstant,Strobe<GreenYellow,Black,20,30>,TrFade<100>>,TrConcat<TrInstant,BrownNoiseFlicker<Yellow,Rgb<0,70,0>,30>,TrJoin<TrSmoothFade<200>,TrJoinR<TrWipeIn<200>,TrWipe<200>>>>,SaberBase::LOCKUP_NORMAL>,
  58. InOutTrL<TrWipeSparkTip<White,250>,TrWipeInX<InOutWavTime>>>>(),
  59.  
  60. StylePtr<InOutHelper<White, 1, 1, Sequence<White, Black, 200, 30, 0b1010101010101010,0b1000000000000000>>>(),
  61. StylePtr<InOutHelper<Blinking<Black,White,1500,500>, 1, 1, Sequence<White, Black, 200, 30, 0b0000000000000000,0b0010101010101000>>>(),
  62. "all-in-one effect-scroll style - style library for presets. match bases to 2 lockup colors from list"},
  63.  
  64.  
  65.  
  66.  
  67. { "testfont2;common", "",
  68.  
  69. StylePtr<Layers<
  70. // Main Blade Color/Styles Base
  71. ColorChange<TrFade<1000>,Red,Yellow,Green,Cyan,Blue,Magenta,White,OrangeRed,LightYellow,SpringGreen,Aquamarine,DeepSkyBlue>,
  72. // 3-Layer Lockup Bump for less gradient fade. SmoothStep mask follows blade color
  73. LockupTrL<Layers<
  74. Sparkle<RandomPerLEDFlicker<Red,Black>,White,300,500>,
  75. // Tip side mask
  76. AlphaL<ColorChange<TrFade<1000>,OrangeRed,LightYellow,SpringGreen,Aquamarine,DeepSkyBlue,Red,Yellow,Green,Cyan,Blue,Magenta,White>,
  77. SmoothStep<Scale<BladeAngle<>,Int<26500>,Int<12500>>,Int<2000>>>,
  78. // Hilt side mask
  79. AlphaL<ColorChange<TrFade<1000>,OrangeRed,LightYellow,SpringGreen,Aquamarine,DeepSkyBlue,Red,Yellow,Green,Cyan,Blue,Magenta,White>,
  80. SmoothStep<Scale<BladeAngle<>,Int<17500>,Int<3500>>,Int<-2000>>>>,TrInstant,TrInstant,SaberBase::LOCKUP_NORMAL>,
  81. LockupTrL<AlphaL<AudioFlicker<BrownNoiseFlicker<Strobe<Black,OrangeRed,20,25>,Yellow,400>,Rgb<180,180,180>>,Bump<Scale<BladeAngle<>,Int<22000>,Int<8000>>,Int<8000>>>,TrInstant,TrInstant,SaberBase::LOCKUP_NORMAL>,
  82. LockupTrL<AlphaL<BlinkingX<Yellow,BlinkingX<Rgb<255,20,20>,White,Int<150>,Scale<SlowNoise<Int<3000>>,Int<250>,Int<750>>>,Int<150>,Scale<SlowNoise<Int<3000>>,Int<100>,Int<900>>>,Bump<Scale<BladeAngle<>,Int<22000>,Int<8000>>,Int<2000>>>,TrConcat<TrInstant,Strobe<GreenYellow,Black,20,30>,TrFade<100>>,TrConcat<TrInstant,BrownNoiseFlicker<Yellow,Rgb<0,70,0>,30>,TrJoin<TrSmoothFade<200>,TrJoinR<TrWipeIn<200>,TrWipe<200>>>>,SaberBase::LOCKUP_NORMAL>,
  83. InOutTrL<TrWipeSparkTip<White,250>,TrWipeInX<InOutWavTime>>>>(),
  84.  
  85. StylePtr<InOutHelper<White, 1, 1, Sequence<White, Black, 200, 30, 0b1010101010101010,0b1000000000000000>>>(),
  86. StylePtr<InOutHelper<Blinking<Black,White,1500,500>, 1, 1, Sequence<White, Black, 200, 30, 0b0000000000000000,0b0010101010101000>>>(),
  87. "all-in-one effect-scroll style - style library for presets. match bases to 2 lockup colors from list"},
  88.  
  89.  
  90.  
  91. { "testfont3;common", "",
  92.  
  93. StylePtr<Layers<
  94. // Main Blade Color/Styles Base
  95. ColorChange<TrFade<1000>,Red,Yellow,Green,Cyan,Blue,Magenta,White,OrangeRed,LightYellow,SpringGreen,Aquamarine,DeepSkyBlue>,
  96. // 3-Layer Lockup Bump for less gradient fade. SmoothStep mask follows blade color
  97. LockupTrL<Layers<
  98. Sparkle<RandomPerLEDFlicker<Red,Black>,White,300,500>,
  99. // Tip side mask
  100. AlphaL<ColorChange<TrFade<1000>,OrangeRed,LightYellow,SpringGreen,Aquamarine,DeepSkyBlue,Red,Yellow,Green,Cyan,Blue,Magenta,White>,
  101. SmoothStep<Scale<BladeAngle<>,Int<26500>,Int<12500>>,Int<2000>>>,
  102. // Hilt side mask
  103. AlphaL<ColorChange<TrFade<1000>,OrangeRed,LightYellow,SpringGreen,Aquamarine,DeepSkyBlue,Red,Yellow,Green,Cyan,Blue,Magenta,White>,
  104. SmoothStep<Scale<BladeAngle<>,Int<17500>,Int<3500>>,Int<-2000>>>>,TrInstant,TrInstant,SaberBase::LOCKUP_NORMAL>,
  105. LockupTrL<AlphaL<AudioFlicker<BrownNoiseFlicker<Strobe<Black,OrangeRed,20,25>,Yellow,400>,Rgb<180,180,180>>,Bump<Scale<BladeAngle<>,Int<22000>,Int<8000>>,Int<8000>>>,TrInstant,TrInstant,SaberBase::LOCKUP_NORMAL>,
  106. LockupTrL<AlphaL<BlinkingX<Yellow,BlinkingX<Rgb<255,20,20>,White,Int<150>,Scale<SlowNoise<Int<3000>>,Int<250>,Int<750>>>,Int<150>,Scale<SlowNoise<Int<3000>>,Int<100>,Int<900>>>,Bump<Scale<BladeAngle<>,Int<22000>,Int<8000>>,Int<2000>>>,TrConcat<TrInstant,Strobe<GreenYellow,Black,20,30>,TrFade<100>>,TrConcat<TrInstant,BrownNoiseFlicker<Yellow,Rgb<0,70,0>,30>,TrJoin<TrSmoothFade<200>,TrJoinR<TrWipeIn<200>,TrWipe<200>>>>,SaberBase::LOCKUP_NORMAL>,
  107. InOutTrL<TrWipeSparkTip<White,250>,TrWipeInX<InOutWavTime>>>>(),
  108.  
  109. StylePtr<InOutHelper<White, 1, 1, Sequence<White, Black, 200, 30, 0b1010101010101010,0b1000000000000000>>>(),
  110. StylePtr<InOutHelper<Blinking<Black,White,1500,500>, 1, 1, Sequence<White, Black, 200, 30, 0b0000000000000000,0b0010101010101000>>>(),
  111. "all-in-one effect-scroll style - style library for presets. match bases to 2 lockup colors from list"},
  112.  
  113.  
  114.  
  115. { "testfont4;common", "",
  116.  
  117. StylePtr<Layers<
  118. // Main Blade Color/Styles Base
  119. ColorChange<TrFade<1000>,Red,Yellow,Green,Cyan,Blue,Magenta,White,OrangeRed,LightYellow,SpringGreen,Aquamarine,DeepSkyBlue>,
  120. // 3-Layer Lockup Bump for less gradient fade. SmoothStep mask follows blade color
  121. LockupTrL<Layers<
  122. Sparkle<RandomPerLEDFlicker<Red,Black>,White,300,500>,
  123. // Tip side mask
  124. AlphaL<ColorChange<TrFade<1000>,OrangeRed,LightYellow,SpringGreen,Aquamarine,DeepSkyBlue,Red,Yellow,Green,Cyan,Blue,Magenta,White>,
  125. SmoothStep<Scale<BladeAngle<>,Int<26500>,Int<12500>>,Int<2000>>>,
  126. // Hilt side mask
  127. AlphaL<ColorChange<TrFade<1000>,OrangeRed,LightYellow,SpringGreen,Aquamarine,DeepSkyBlue,Red,Yellow,Green,Cyan,Blue,Magenta,White>,
  128. SmoothStep<Scale<BladeAngle<>,Int<17500>,Int<3500>>,Int<-2000>>>>,TrInstant,TrInstant,SaberBase::LOCKUP_NORMAL>,
  129. LockupTrL<AlphaL<AudioFlicker<BrownNoiseFlicker<Strobe<Black,OrangeRed,20,25>,Yellow,400>,Rgb<180,180,180>>,Bump<Scale<BladeAngle<>,Int<22000>,Int<8000>>,Int<8000>>>,TrInstant,TrInstant,SaberBase::LOCKUP_NORMAL>,
  130. LockupTrL<AlphaL<BlinkingX<Yellow,BlinkingX<Rgb<255,20,20>,White,Int<150>,Scale<SlowNoise<Int<3000>>,Int<250>,Int<750>>>,Int<150>,Scale<SlowNoise<Int<3000>>,Int<100>,Int<900>>>,Bump<Scale<BladeAngle<>,Int<22000>,Int<8000>>,Int<2000>>>,TrConcat<TrInstant,Strobe<GreenYellow,Black,20,30>,TrFade<100>>,TrConcat<TrInstant,BrownNoiseFlicker<Yellow,Rgb<0,70,0>,30>,TrJoin<TrSmoothFade<200>,TrJoinR<TrWipeIn<200>,TrWipe<200>>>>,SaberBase::LOCKUP_NORMAL>,
  131. InOutTrL<TrWipeSparkTip<White,250>,TrWipeInX<InOutWavTime>>>>(),
  132.  
  133. StylePtr<InOutHelper<White, 1, 1, Sequence<White, Black, 200, 30, 0b1010101010101010,0b1000000000000000>>>(),
  134. StylePtr<InOutHelper<Blinking<Black,White,1500,500>, 1, 1, Sequence<White, Black, 200, 30, 0b0000000000000000,0b0010101010101000>>>(),
  135. "all-in-one effect-scroll style - style library for presets. match bases to 2 lockup colors from list"},
  136.  
  137.  
  138.  
  139. { "testfont5;common", "",
  140.  
  141. StylePtr<Layers<
  142. // Main Blade Color/Styles Base
  143. ColorChange<TrFade<1000>,Red,Yellow,Green,Cyan,Blue,Magenta,White,OrangeRed,LightYellow,SpringGreen,Aquamarine,DeepSkyBlue>,
  144. // 3-Layer Lockup Bump for less gradient fade. SmoothStep mask follows blade color
  145. LockupTrL<Layers<
  146. Sparkle<RandomPerLEDFlicker<Red,Black>,White,300,500>,
  147. // Tip side mask
  148. AlphaL<ColorChange<TrFade<1000>,OrangeRed,LightYellow,SpringGreen,Aquamarine,DeepSkyBlue,Red,Yellow,Green,Cyan,Blue,Magenta,White>,
  149. SmoothStep<Scale<BladeAngle<>,Int<26500>,Int<12500>>,Int<2000>>>,
  150. // Hilt side mask
  151. AlphaL<ColorChange<TrFade<1000>,OrangeRed,LightYellow,SpringGreen,Aquamarine,DeepSkyBlue,Red,Yellow,Green,Cyan,Blue,Magenta,White>,
  152. SmoothStep<Scale<BladeAngle<>,Int<17500>,Int<3500>>,Int<-2000>>>>,TrInstant,TrInstant,SaberBase::LOCKUP_NORMAL>,
  153. LockupTrL<AlphaL<AudioFlicker<BrownNoiseFlicker<Strobe<Black,OrangeRed,20,25>,Yellow,400>,Rgb<180,180,180>>,Bump<Scale<BladeAngle<>,Int<22000>,Int<8000>>,Int<8000>>>,TrInstant,TrInstant,SaberBase::LOCKUP_NORMAL>,
  154. LockupTrL<AlphaL<BlinkingX<Yellow,BlinkingX<Rgb<255,20,20>,White,Int<150>,Scale<SlowNoise<Int<3000>>,Int<250>,Int<750>>>,Int<150>,Scale<SlowNoise<Int<3000>>,Int<100>,Int<900>>>,Bump<Scale<BladeAngle<>,Int<22000>,Int<8000>>,Int<2000>>>,TrConcat<TrInstant,Strobe<GreenYellow,Black,20,30>,TrFade<100>>,TrConcat<TrInstant,BrownNoiseFlicker<Yellow,Rgb<0,70,0>,30>,TrJoin<TrSmoothFade<200>,TrJoinR<TrWipeIn<200>,TrWipe<200>>>>,SaberBase::LOCKUP_NORMAL>,
  155. InOutTrL<TrWipeSparkTip<White,250>,TrWipeInX<InOutWavTime>>>>(),
  156.  
  157. StylePtr<InOutHelper<White, 1, 1, Sequence<White, Black, 200, 30, 0b1010101010101010,0b1000000000000000>>>(),
  158. StylePtr<InOutHelper<Blinking<Black,White,1500,500>, 1, 1, Sequence<White, Black, 200, 30, 0b0000000000000000,0b0010101010101000>>>(),
  159. "all-in-one effect-scroll style - style library for presets. match bases to 2 lockup colors from list"},
  160.  
  161.  
  162.  
  163. { "testfont6;common", "",
  164.  
  165. StylePtr<Layers<
  166. // Main Blade Color/Styles Base
  167. ColorChange<TrFade<1000>,Red,Yellow,Green,Cyan,Blue,Magenta,White,OrangeRed,LightYellow,SpringGreen,Aquamarine,DeepSkyBlue>,
  168. // 3-Layer Lockup Bump for less gradient fade. SmoothStep mask follows blade color
  169. LockupTrL<Layers<
  170. Sparkle<RandomPerLEDFlicker<Red,Black>,White,300,500>,
  171. // Tip side mask
  172. AlphaL<ColorChange<TrFade<1000>,OrangeRed,LightYellow,SpringGreen,Aquamarine,DeepSkyBlue,Red,Yellow,Green,Cyan,Blue,Magenta,White>,
  173. SmoothStep<Scale<BladeAngle<>,Int<26500>,Int<12500>>,Int<2000>>>,
  174. // Hilt side mask
  175. AlphaL<ColorChange<TrFade<1000>,OrangeRed,LightYellow,SpringGreen,Aquamarine,DeepSkyBlue,Red,Yellow,Green,Cyan,Blue,Magenta,White>,
  176. SmoothStep<Scale<BladeAngle<>,Int<17500>,Int<3500>>,Int<-2000>>>>,TrInstant,TrInstant,SaberBase::LOCKUP_NORMAL>,
  177. LockupTrL<AlphaL<AudioFlicker<BrownNoiseFlicker<Strobe<Black,OrangeRed,20,25>,Yellow,400>,Rgb<180,180,180>>,Bump<Scale<BladeAngle<>,Int<22000>,Int<8000>>,Int<8000>>>,TrInstant,TrInstant,SaberBase::LOCKUP_NORMAL>,
  178. LockupTrL<AlphaL<BlinkingX<Yellow,BlinkingX<Rgb<255,20,20>,White,Int<150>,Scale<SlowNoise<Int<3000>>,Int<250>,Int<750>>>,Int<150>,Scale<SlowNoise<Int<3000>>,Int<100>,Int<900>>>,Bump<Scale<BladeAngle<>,Int<22000>,Int<8000>>,Int<2000>>>,TrConcat<TrInstant,Strobe<GreenYellow,Black,20,30>,TrFade<100>>,TrConcat<TrInstant,BrownNoiseFlicker<Yellow,Rgb<0,70,0>,30>,TrJoin<TrSmoothFade<200>,TrJoinR<TrWipeIn<200>,TrWipe<200>>>>,SaberBase::LOCKUP_NORMAL>,
  179. InOutTrL<TrWipeSparkTip<White,250>,TrWipeInX<InOutWavTime>>>>(),
  180.  
  181. StylePtr<InOutHelper<White, 1, 1, Sequence<White, Black, 200, 30, 0b1010101010101010,0b1000000000000000>>>(),
  182. StylePtr<InOutHelper<Blinking<Black,White,1500,500>, 1, 1, Sequence<White, Black, 200, 30, 0b0000000000000000,0b0010101010101000>>>(),
  183. "all-in-one effect-scroll style - style library for presets. match bases to 2 lockup colors from list"},
  184.  
  185.  
  186.  
  187. { "testfont7;common", "",
  188.  
  189. StylePtr<Layers<
  190. // Main Blade Color/Styles Base
  191. ColorChange<TrFade<1000>,Red,Yellow,Green,Cyan,Blue,Magenta,White,OrangeRed,LightYellow,SpringGreen,Aquamarine,DeepSkyBlue>,
  192. // 3-Layer Lockup Bump for less gradient fade. SmoothStep mask follows blade color
  193. LockupTrL<Layers<
  194. Sparkle<RandomPerLEDFlicker<Red,Black>,White,300,500>,
  195. // Tip side mask
  196. AlphaL<ColorChange<TrFade<1000>,OrangeRed,LightYellow,SpringGreen,Aquamarine,DeepSkyBlue,Red,Yellow,Green,Cyan,Blue,Magenta,White>,
  197. SmoothStep<Scale<BladeAngle<>,Int<26500>,Int<12500>>,Int<2000>>>,
  198. // Hilt side mask
  199. AlphaL<ColorChange<TrFade<1000>,OrangeRed,LightYellow,SpringGreen,Aquamarine,DeepSkyBlue,Red,Yellow,Green,Cyan,Blue,Magenta,White>,
  200. SmoothStep<Scale<BladeAngle<>,Int<17500>,Int<3500>>,Int<-2000>>>>,TrInstant,TrInstant,SaberBase::LOCKUP_NORMAL>,
  201. LockupTrL<AlphaL<AudioFlicker<BrownNoiseFlicker<Strobe<Black,OrangeRed,20,25>,Yellow,400>,Rgb<180,180,180>>,Bump<Scale<BladeAngle<>,Int<22000>,Int<8000>>,Int<8000>>>,TrInstant,TrInstant,SaberBase::LOCKUP_NORMAL>,
  202. LockupTrL<AlphaL<BlinkingX<Yellow,BlinkingX<Rgb<255,20,20>,White,Int<150>,Scale<SlowNoise<Int<3000>>,Int<250>,Int<750>>>,Int<150>,Scale<SlowNoise<Int<3000>>,Int<100>,Int<900>>>,Bump<Scale<BladeAngle<>,Int<22000>,Int<8000>>,Int<2000>>>,TrConcat<TrInstant,Strobe<GreenYellow,Black,20,30>,TrFade<100>>,TrConcat<TrInstant,BrownNoiseFlicker<Yellow,Rgb<0,70,0>,30>,TrJoin<TrSmoothFade<200>,TrJoinR<TrWipeIn<200>,TrWipe<200>>>>,SaberBase::LOCKUP_NORMAL>,
  203. InOutTrL<TrWipeSparkTip<White,250>,TrWipeInX<InOutWavTime>>>>(),
  204.  
  205. StylePtr<InOutHelper<White, 1, 1, Sequence<White, Black, 200, 30, 0b1010101010101010,0b1000000000000000>>>(),
  206. StylePtr<InOutHelper<Blinking<Black,White,1500,500>, 1, 1, Sequence<White, Black, 200, 30, 0b0000000000000000,0b0010101010101000>>>(),
  207. "all-in-one effect-scroll style - style library for presets. match bases to 2 lockup colors from list"},
  208.  
  209.  
  210.  
  211. { "testfont8;common", "",
  212.  
  213. StylePtr<Layers<
  214. // Main Blade Color/Styles Base
  215. ColorChange<TrFade<1000>,Red,Yellow,Green,Cyan,Blue,Magenta,White,OrangeRed,LightYellow,SpringGreen,Aquamarine,DeepSkyBlue>,
  216. // 3-Layer Lockup Bump for less gradient fade. SmoothStep mask follows blade color
  217. LockupTrL<Layers<
  218. Sparkle<RandomPerLEDFlicker<Red,Black>,White,300,500>,
  219. // Tip side mask
  220. AlphaL<ColorChange<TrFade<1000>,OrangeRed,LightYellow,SpringGreen,Aquamarine,DeepSkyBlue,Red,Yellow,Green,Cyan,Blue,Magenta,White>,
  221. SmoothStep<Scale<BladeAngle<>,Int<26500>,Int<12500>>,Int<2000>>>,
  222. // Hilt side mask
  223. AlphaL<ColorChange<TrFade<1000>,OrangeRed,LightYellow,SpringGreen,Aquamarine,DeepSkyBlue,Red,Yellow,Green,Cyan,Blue,Magenta,White>,
  224. SmoothStep<Scale<BladeAngle<>,Int<17500>,Int<3500>>,Int<-2000>>>>,TrInstant,TrInstant,SaberBase::LOCKUP_NORMAL>,
  225. LockupTrL<AlphaL<AudioFlicker<BrownNoiseFlicker<Strobe<Black,OrangeRed,20,25>,Yellow,400>,Rgb<180,180,180>>,Bump<Scale<BladeAngle<>,Int<22000>,Int<8000>>,Int<8000>>>,TrInstant,TrInstant,SaberBase::LOCKUP_NORMAL>,
  226. LockupTrL<AlphaL<BlinkingX<Yellow,BlinkingX<Rgb<255,20,20>,White,Int<150>,Scale<SlowNoise<Int<3000>>,Int<250>,Int<750>>>,Int<150>,Scale<SlowNoise<Int<3000>>,Int<100>,Int<900>>>,Bump<Scale<BladeAngle<>,Int<22000>,Int<8000>>,Int<2000>>>,TrConcat<TrInstant,Strobe<GreenYellow,Black,20,30>,TrFade<100>>,TrConcat<TrInstant,BrownNoiseFlicker<Yellow,Rgb<0,70,0>,30>,TrJoin<TrSmoothFade<200>,TrJoinR<TrWipeIn<200>,TrWipe<200>>>>,SaberBase::LOCKUP_NORMAL>,
  227. InOutTrL<TrWipeSparkTip<White,250>,TrWipeInX<InOutWavTime>>>>(),
  228.  
  229. StylePtr<InOutHelper<White, 1, 1, Sequence<White, Black, 200, 30, 0b1010101010101010,0b1000000000000000>>>(),
  230. StylePtr<InOutHelper<Blinking<Black,White,1500,500>, 1, 1, Sequence<White, Black, 200, 30, 0b0000000000000000,0b0010101010101000>>>(),
  231. "all-in-one effect-scroll style - style library for presets. match bases to 2 lockup colors from list"},
  232.  
  233.  
  234.  
  235. { "testfont9;common", "",
  236.  
  237. StylePtr<Layers<
  238. // Main Blade Color/Styles Base
  239. ColorChange<TrFade<1000>,Red,Yellow,Green,Cyan,Blue,Magenta,White,OrangeRed,LightYellow,SpringGreen,Aquamarine,DeepSkyBlue>,
  240. // 3-Layer Lockup Bump for less gradient fade. SmoothStep mask follows blade color
  241. LockupTrL<Layers<
  242. Sparkle<RandomPerLEDFlicker<Red,Black>,White,300,500>,
  243. // Tip side mask
  244. AlphaL<ColorChange<TrFade<1000>,OrangeRed,LightYellow,SpringGreen,Aquamarine,DeepSkyBlue,Red,Yellow,Green,Cyan,Blue,Magenta,White>,
  245. SmoothStep<Scale<BladeAngle<>,Int<26500>,Int<12500>>,Int<2000>>>,
  246. // Hilt side mask
  247. AlphaL<ColorChange<TrFade<1000>,OrangeRed,LightYellow,SpringGreen,Aquamarine,DeepSkyBlue,Red,Yellow,Green,Cyan,Blue,Magenta,White>,
  248. SmoothStep<Scale<BladeAngle<>,Int<17500>,Int<3500>>,Int<-2000>>>>,TrInstant,TrInstant,SaberBase::LOCKUP_NORMAL>,
  249. LockupTrL<AlphaL<AudioFlicker<BrownNoiseFlicker<Strobe<Black,OrangeRed,20,25>,Yellow,400>,Rgb<180,180,180>>,Bump<Scale<BladeAngle<>,Int<22000>,Int<8000>>,Int<8000>>>,TrInstant,TrInstant,SaberBase::LOCKUP_NORMAL>,
  250. LockupTrL<AlphaL<BlinkingX<Yellow,BlinkingX<Rgb<255,20,20>,White,Int<150>,Scale<SlowNoise<Int<3000>>,Int<250>,Int<750>>>,Int<150>,Scale<SlowNoise<Int<3000>>,Int<100>,Int<900>>>,Bump<Scale<BladeAngle<>,Int<22000>,Int<8000>>,Int<2000>>>,TrConcat<TrInstant,Strobe<GreenYellow,Black,20,30>,TrFade<100>>,TrConcat<TrInstant,BrownNoiseFlicker<Yellow,Rgb<0,70,0>,30>,TrJoin<TrSmoothFade<200>,TrJoinR<TrWipeIn<200>,TrWipe<200>>>>,SaberBase::LOCKUP_NORMAL>,
  251. InOutTrL<TrWipeSparkTip<White,250>,TrWipeInX<InOutWavTime>>>>(),
  252.  
  253. StylePtr<InOutHelper<White, 1, 1, Sequence<White, Black, 200, 30, 0b1010101010101010,0b1000000000000000>>>(),
  254. StylePtr<InOutHelper<Blinking<Black,White,1500,500>, 1, 1, Sequence<White, Black, 200, 30, 0b0000000000000000,0b0010101010101000>>>(),
  255. "all-in-one effect-scroll style - style library for presets. match bases to 2 lockup colors from list"},
  256.  
  257.  
  258.  
  259. { "testfont10;common", "",
  260.  
  261. StylePtr<Layers<
  262. // Main Blade Color/Styles Base
  263. ColorChange<TrFade<1000>,Red,Yellow,Green,Cyan,Blue,Magenta,White,OrangeRed,LightYellow,SpringGreen,Aquamarine,DeepSkyBlue>,
  264. // 3-Layer Lockup Bump for less gradient fade. SmoothStep mask follows blade color
  265. LockupTrL<Layers<
  266. Sparkle<RandomPerLEDFlicker<Red,Black>,White,300,500>,
  267. // Tip side mask
  268. AlphaL<ColorChange<TrFade<1000>,OrangeRed,LightYellow,SpringGreen,Aquamarine,DeepSkyBlue,Red,Yellow,Green,Cyan,Blue,Magenta,White>,
  269. SmoothStep<Scale<BladeAngle<>,Int<26500>,Int<12500>>,Int<2000>>>,
  270. // Hilt side mask
  271. AlphaL<ColorChange<TrFade<1000>,OrangeRed,LightYellow,SpringGreen,Aquamarine,DeepSkyBlue,Red,Yellow,Green,Cyan,Blue,Magenta,White>,
  272. SmoothStep<Scale<BladeAngle<>,Int<17500>,Int<3500>>,Int<-2000>>>>,TrInstant,TrInstant,SaberBase::LOCKUP_NORMAL>,
  273. LockupTrL<AlphaL<AudioFlicker<BrownNoiseFlicker<Strobe<Black,OrangeRed,20,25>,Yellow,400>,Rgb<180,180,180>>,Bump<Scale<BladeAngle<>,Int<22000>,Int<8000>>,Int<8000>>>,TrInstant,TrInstant,SaberBase::LOCKUP_NORMAL>,
  274. LockupTrL<AlphaL<BlinkingX<Yellow,BlinkingX<Rgb<255,20,20>,White,Int<150>,Scale<SlowNoise<Int<3000>>,Int<250>,Int<750>>>,Int<150>,Scale<SlowNoise<Int<3000>>,Int<100>,Int<900>>>,Bump<Scale<BladeAngle<>,Int<22000>,Int<8000>>,Int<2000>>>,TrConcat<TrInstant,Strobe<GreenYellow,Black,20,30>,TrFade<100>>,TrConcat<TrInstant,BrownNoiseFlicker<Yellow,Rgb<0,70,0>,30>,TrJoin<TrSmoothFade<200>,TrJoinR<TrWipeIn<200>,TrWipe<200>>>>,SaberBase::LOCKUP_NORMAL>,
  275. InOutTrL<TrWipeSparkTip<White,250>,TrWipeInX<InOutWavTime>>>>(),
  276.  
  277. StylePtr<InOutHelper<White, 1, 1, Sequence<White, Black, 200, 30, 0b1010101010101010,0b1000000000000000>>>(),
  278. StylePtr<InOutHelper<Blinking<Black,White,1500,500>, 1, 1, Sequence<White, Black, 200, 30, 0b0000000000000000,0b0010101010101000>>>(),
  279. "all-in-one effect-scroll style - style library for presets. match bases to 2 lockup colors from list"},
  280.  
  281.  
  282.  
  283. { "testfont11;common", "",
  284.  
  285. StylePtr<Layers<
  286. // Main Blade Color/Styles Base
  287. ColorChange<TrFade<1000>,Red,Yellow,Green,Cyan,Blue,Magenta,White,OrangeRed,LightYellow,SpringGreen,Aquamarine,DeepSkyBlue>,
  288. // 3-Layer Lockup Bump for less gradient fade. SmoothStep mask follows blade color
  289. LockupTrL<Layers<
  290. Sparkle<RandomPerLEDFlicker<Red,Black>,White,300,500>,
  291. // Tip side mask
  292. AlphaL<ColorChange<TrFade<1000>,OrangeRed,LightYellow,SpringGreen,Aquamarine,DeepSkyBlue,Red,Yellow,Green,Cyan,Blue,Magenta,White>,
  293. SmoothStep<Scale<BladeAngle<>,Int<26500>,Int<12500>>,Int<2000>>>,
  294. // Hilt side mask
  295. AlphaL<ColorChange<TrFade<1000>,OrangeRed,LightYellow,SpringGreen,Aquamarine,DeepSkyBlue,Red,Yellow,Green,Cyan,Blue,Magenta,White>,
  296. SmoothStep<Scale<BladeAngle<>,Int<17500>,Int<3500>>,Int<-2000>>>>,TrInstant,TrInstant,SaberBase::LOCKUP_NORMAL>,
  297. LockupTrL<AlphaL<AudioFlicker<BrownNoiseFlicker<Strobe<Black,OrangeRed,20,25>,Yellow,400>,Rgb<180,180,180>>,Bump<Scale<BladeAngle<>,Int<22000>,Int<8000>>,Int<8000>>>,TrInstant,TrInstant,SaberBase::LOCKUP_NORMAL>,
  298. LockupTrL<AlphaL<BlinkingX<Yellow,BlinkingX<Rgb<255,20,20>,White,Int<150>,Scale<SlowNoise<Int<3000>>,Int<250>,Int<750>>>,Int<150>,Scale<SlowNoise<Int<3000>>,Int<100>,Int<900>>>,Bump<Scale<BladeAngle<>,Int<22000>,Int<8000>>,Int<2000>>>,TrConcat<TrInstant,Strobe<GreenYellow,Black,20,30>,TrFade<100>>,TrConcat<TrInstant,BrownNoiseFlicker<Yellow,Rgb<0,70,0>,30>,TrJoin<TrSmoothFade<200>,TrJoinR<TrWipeIn<200>,TrWipe<200>>>>,SaberBase::LOCKUP_NORMAL>,
  299. InOutTrL<TrWipeSparkTip<White,250>,TrWipeInX<InOutWavTime>>>>(),
  300.  
  301. StylePtr<InOutHelper<White, 1, 1, Sequence<White, Black, 200, 30, 0b1010101010101010,0b1000000000000000>>>(),
  302. StylePtr<InOutHelper<Blinking<Black,White,1500,500>, 1, 1, Sequence<White, Black, 200, 30, 0b0000000000000000,0b0010101010101000>>>(),
  303. "all-in-one effect-scroll style - style library for presets. match bases to 2 lockup colors from list"},
  304.  
  305.  
  306.  
  307. { "testfont12;common", "",
  308.  
  309. StylePtr<Layers<
  310. // Main Blade Color/Styles Base
  311. ColorChange<TrFade<1000>,Red,Yellow,Green,Cyan,Blue,Magenta,White,OrangeRed,LightYellow,SpringGreen,Aquamarine,DeepSkyBlue>,
  312. // 3-Layer Lockup Bump for less gradient fade. SmoothStep mask follows blade color
  313. LockupTrL<Layers<
  314. Sparkle<RandomPerLEDFlicker<Red,Black>,White,300,500>,
  315. // Tip side mask
  316. AlphaL<ColorChange<TrFade<1000>,OrangeRed,LightYellow,SpringGreen,Aquamarine,DeepSkyBlue,Red,Yellow,Green,Cyan,Blue,Magenta,White>,
  317. SmoothStep<Scale<BladeAngle<>,Int<26500>,Int<12500>>,Int<2000>>>,
  318. // Hilt side mask
  319. AlphaL<ColorChange<TrFade<1000>,OrangeRed,LightYellow,SpringGreen,Aquamarine,DeepSkyBlue,Red,Yellow,Green,Cyan,Blue,Magenta,White>,
  320. SmoothStep<Scale<BladeAngle<>,Int<17500>,Int<3500>>,Int<-2000>>>>,TrInstant,TrInstant,SaberBase::LOCKUP_NORMAL>,
  321. LockupTrL<AlphaL<AudioFlicker<BrownNoiseFlicker<Strobe<Black,OrangeRed,20,25>,Yellow,400>,Rgb<180,180,180>>,Bump<Scale<BladeAngle<>,Int<22000>,Int<8000>>,Int<8000>>>,TrInstant,TrInstant,SaberBase::LOCKUP_NORMAL>,
  322. LockupTrL<AlphaL<BlinkingX<Yellow,BlinkingX<Rgb<255,20,20>,White,Int<150>,Scale<SlowNoise<Int<3000>>,Int<250>,Int<750>>>,Int<150>,Scale<SlowNoise<Int<3000>>,Int<100>,Int<900>>>,Bump<Scale<BladeAngle<>,Int<22000>,Int<8000>>,Int<2000>>>,TrConcat<TrInstant,Strobe<GreenYellow,Black,20,30>,TrFade<100>>,TrConcat<TrInstant,BrownNoiseFlicker<Yellow,Rgb<0,70,0>,30>,TrJoin<TrSmoothFade<200>,TrJoinR<TrWipeIn<200>,TrWipe<200>>>>,SaberBase::LOCKUP_NORMAL>,
  323. InOutTrL<TrWipeSparkTip<White,250>,TrWipeInX<InOutWavTime>>>>(),
  324.  
  325. StylePtr<InOutHelper<White, 1, 1, Sequence<White, Black, 200, 30, 0b1010101010101010,0b1000000000000000>>>(),
  326. StylePtr<InOutHelper<Blinking<Black,White,1500,500>, 1, 1, Sequence<White, Black, 200, 30, 0b0000000000000000,0b0010101010101000>>>(),
  327. "all-in-one effect-scroll style - style library for presets. match bases to 2 lockup colors from list"},
  328.  
  329.  
  330.  
  331.  
  332.  
  333. };
  334.  
  335. //----------------------------------------------------------------------------------------------------------------------------------------
  336.  
  337.  
  338. BladeConfig blades[] = {
  339. { 0, WS281XBladePtr<131, bladePin, Color8::GRB, PowerPINS<bladePowerPin2, bladePowerPin3> >(),
  340. DimBlade(50.0, SimpleBladePtr<CreeXPE2WhiteTemplate<550>, NoLED, NoLED, NoLED, bladePowerPin4, -1, -1, -1>()),
  341. DimBlade(50.0, SimpleBladePtr<CreeXPE2WhiteTemplate<550>, NoLED, NoLED, NoLED, bladePowerPin5, -1, -1, -1>()),
  342. CONFIGARRAY(presets) },
  343.  
  344. };
  345. #endif
  346.  
  347. //----------------------------------------------------------------------------------------------------------------------------------------
  348.  
  349.  
  350. #ifdef CONFIG_BUTTONS
  351. Button PowerButton(BUTTON_POWER, powerButtonPin, "pow");
  352. Button AuxButton(BUTTON_AUX, auxPin, "aux");
  353. #endif
  354.  
Advertisement
Add Comment
Please, Sign In to add comment