NoSloppy

Untitled

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