NoSloppy

Untitled

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