-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathPP_starkiller.h
104 lines (76 loc) · 10.8 KB
/
PP_starkiller.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
#ifdef CONFIG_TOP
#include "proffieboard_v1_config.h"
#define NUM_BLADES 2
#define NUM_BUTTONS 2
#define VOLUME 2800
const unsigned int maxLedsPerStrip = 144;
#define CLASH_THRESHOLD_G 2.5
#define ENABLE_AUDIO
#define ENABLE_MOTION
#define ENABLE_WS2811
#define ENABLE_SD
#endif
#ifdef CONFIG_PRESETS
Preset presets[] = {
{ "Vaders_Assassin", "tracks/SK1.wav",
StylePtr<InOutHelper<SimpleClash<Lockup<OriginalBlast<Gradient<Pulsing<Rgb16<40112,0,0>,Red,2000>,Pulsing<Red,Orange,2000>,Pulsing<Orange,OrangeRed,2000>,Pulsing<Red,Rgb16<40112,0,0>,2000>>,Green>,Gradient<HumpFlicker<Rgb16<40112,0,0>,Red,500>,Pulsing<AudioFlicker<White,Orange>,HumpFlicker<Green,Rgb16<40112,0,0>,500>,2800>,Pulsing<HumpFlicker<Rgb16<40112,0,0>,Green,500>,AudioFlicker<White,Orange>,2800>,AudioFlicker<Rgb16<40112,0,0>,Red>>,AudioFlicker<AudioFlicker<Yellow,White>,White>>,RandomFlicker<Rgb16<40112,0,0>,Blue>,75>,185,600,Black>>(),
StylePtr<InOutHelper<SimpleClash<Lockup<Blast<AudioFlicker<Red,Rgb16<24816,0,0>>,White,200,100,400>,AudioFlicker<Pulsing<Red,Rgb<50,0,0>,500>,Red>,AudioFlicker<Pulsing<Red,Rgb<50,0,0>,5000>,Red>>,White,40>,185,800,Pulsing<Black,Red,3000>>>(), "PPSK"},
{"Sith_02","tracks/SW_AST2.wav",
StylePtr<InOutHelper<SimpleClash<Lockup<OriginalBlast<AudioFlicker<HumpFlicker<Rgb16<24816,0,0>,Red,15>,AudioFlicker<Rgb16<24816,0,0>,Yellow>>,Green>,Gradient<Pulsing<BrownNoiseFlicker<OrangeRed,Rgb16<24816,0,0>,50>,HumpFlicker<Yellow,OrangeRed,200>,2500>,Pulsing<HumpFlicker<Yellow,Magenta,50>,BrownNoiseFlicker<Red,Magenta,50>,2000>,Pulsing<AudioFlicker<White,Blue>,Red,2200>,BrownNoiseFlicker<OrangeRed,Yellow,200>>,AudioFlicker<AudioFlicker<Yellow,White>,White>>,Blue,40>,195,600,Black>>(),
StylePtr<InOutHelper<SimpleClash<Lockup<OriginalBlast<AudioFlicker<HumpFlicker<Rgb16<24816,0,0>,Red,15>,AudioFlicker<Rgb16<24816,0,0>,Yellow>>,Green>,Gradient<Pulsing<BrownNoiseFlicker<OrangeRed,Rgb16<24816,0,0>,50>,HumpFlicker<Yellow,OrangeRed,200>,2500>,Pulsing<HumpFlicker<Yellow,Magenta,50>,BrownNoiseFlicker<Red,Magenta,50>,2000>,Pulsing<AudioFlicker<White,Blue>,Red,2200>,BrownNoiseFlicker<OrangeRed,Yellow,200>>,AudioFlicker<AudioFlicker<Yellow,White>,White>>,Blue,40>,195,800,Pulsing<HumpFlicker<Rgb16<24816,0,0>,OrangeRed,50>,HumpFlicker<Red,Orange,50>,1900>>>(), "PPSK"},
{ "Ksith_Vengeance_SS", "tracks/SK2.wav",
StylePtr<InOutHelper<LocalizedClash<Lockup<OriginalBlast<Red,White>,Gradient<Pulsing<BrownNoiseFlicker<OrangeRed,Rgb16<24816,0,0>,50>,HumpFlicker<Yellow,OrangeRed,200>,2500>,Pulsing<HumpFlicker<Yellow,Magenta,50>,BrownNoiseFlicker<Red,Magenta,50>,2000>,Pulsing<AudioFlicker<White,Blue>,Red,2200>,BrownNoiseFlicker<OrangeRed,Yellow,200>>,AudioFlicker<AudioFlicker<Yellow,White>,White>>,BrownNoiseFlicker<Green,Red,50>,220,75>,195,600,Black>>(),
StylePtr<InOutHelper<SimpleClash<Lockup<OriginalBlast<HumpFlicker<White,DeepSkyBlue,5>,Orange>,AudioFlicker<RandomFlicker<GreenYellow,Cyan>,DarkOrange>,AudioFlicker<AudioFlicker<Yellow,White>,White>>,RandomFlicker<Cyan,Yellow>,75>,185,800,Pulsing<HumpFlicker<Red,Cyan,50>,Cyan,4800>>>(), "PPSK"},
{ "cyber", "tracks/SW_DarkDeeds.wav",
StylePtr<InOutHelper<SimpleClash<Lockup<Blast<AudioFlicker<Red,Rgb16<42307,25487,110>>,Cyan,200,100,100000000>,RandomFlicker<DarkOrange,Yellow>,AudioFlicker<Pulsing<Red,Rgb<50,0,0>,5000>,Red>>,Magenta,40>,190,600,Black>>(),
StylePtr<InOutHelper<SimpleClash<Lockup<Blast<AudioFlicker<Red,Rgb16<24816,0,0>>,White,200,100,400>,AudioFlicker<Pulsing<Red,Rgb<50,0,0>,500>,Red>,AudioFlicker<Pulsing<Red,Rgb<50,0,0>,5000>,Red>>,White,40>,185,800,Pulsing<Black,Red,3000>>>(), "PPSK"},
{ "Lady_Tano_v2", "tracks/vader_track05.wav",
StylePtr<InOutHelper<SimpleClash<Lockup<OriginalBlast<Gradient<Pulsing<AudioFlicker<Rgb16<24816,0,0>,Red>,AudioFlicker<OrangeRed,Rgb16<45025,0,0>>,2800>,HumpFlicker<Rgb16<24816,0,0>,Rgb16<42307,25487,110>,35>,Pulsing<AudioFlicker<Rgb16<45025,0,0>,Rgb16<24816,0,0>>,Red,800>>,Green>,AudioFlicker<RandomFlicker<GreenYellow,Magenta>,DarkOrange>,AudioFlicker<AudioFlicker<Yellow,White>,White>>,RandomFlicker<Yellow,Blue>,75>,185,600,Black>>(),
StylePtr<IgnitionDelay<500,InOutHelper<SimpleClash<Lockup<Blast<OnSpark<AudioFlicker<Red,Black>,Magenta,200>,White,200,100,400>,AudioFlicker<OnSpark<Green,White,200>,White>,AudioFlicker<OnSpark<Green,White,200>,White>>,White,40>,300,800,AudioFlicker<Red,Rgb16<42307,25487,110>>>>>(),"PPSK"},
{ "NEC/Nextor", "tracks/SW_AST2.wav",
StylePtr<InOutHelper<SimpleClash<Lockup<Blast<OnSpark<Rgb16<65535,0,0>,Rgb16<47835,33514,0>,200>,SpringGreen,200,100,400>,AudioFlicker<OnSpark<Green,White,400>,Red>,AudioFlicker<OnSpark<Green,White,200>,White>>,Rgb16<46419,44565,937>,65>,180,600,Black>>(),
StylePtr<InOutHelper<SimpleClash<Lockup<Blast<OnSpark<Rgb16<65535,0,0>,Rgb16<47835,33514,0>,200>,SpringGreen,200,100,400>,AudioFlicker<OnSpark<Green,White,400>,Red>,AudioFlicker<OnSpark<Green,White,200>,White>>,Rgb16<46419,44565,937>,65>,180,800,Blinking<Blinking<Red,Blue,150,500>,Blinking<Red,Green,250,500>,1000,500>>>(), "PPSK"},
{"Unstable", "tracks/SK3.wav",
StylePtr<InOutHelper<LocalizedClash<Lockup<Blast<AudioFlicker<Red,Rgb<120,0,0>>,DeepSkyBlue,200,100,400>,Pulsing<Gradient<AudioFlicker<Red,Rgb<120,0,0>>,AudioFlicker<Red,Rgb<120,0,0>>,BrownNoiseFlicker<White,Strobe<SteelBlue,White,50,1>,100>,AudioFlicker<Red,Rgb<120,0,0>>,AudioFlicker<Red,Rgb<120,0,0>>,AudioFlicker<Red,Rgb<120,0,0>>>,Gradient<AudioFlicker<Red,Rgb<120,0,0>>,AudioFlicker<Red,Rgb<120,0,0>>,BrownNoiseFlicker<White,Strobe<SteelBlue,White,50,1>,100>,AudioFlicker<Red,Rgb<120,0,0>>,AudioFlicker<Red,Rgb<120,0,0>>>,3500>,AudioFlicker<Red,White>>,White,80,50>,185,500,Black>>(),
StylePtr<InOutHelper<SimpleClash<Lockup<Blast<OnSpark<Rgb16<65535,0,0>,Rgb16<47835,33514,0>,200>,SpringGreen,200,100,400>,AudioFlicker<OnSpark<Green,White,400>,Red>,AudioFlicker<OnSpark<Green,White,200>,White>>,Rgb16<46419,44565,937>,65>,180,800,Blinking<Blinking<AudioFlicker<GreenYellow,Orange>,Red,150,500>,Blinking<BrownNoiseFlicker<Green,Red,50>,AudioFlicker<Red,Blue>,250,500>,1000,500>>>(), "PPSK"},
{"root", "tracks/darth_nihilus.wav",
StylePtr<InOutHelper<LocalizedClash<Lockup<Blast<AudioFlicker<Rgb<220,0,255>,Rgb<130,0,160>>,White,200,100,400>,Pulsing<Gradient<AudioFlicker<Rgb<220,0,255>,Rgb<130,0,160>>,AudioFlicker<Rgb<220,0,255>,Rgb<130,0,160>>,BrownNoiseFlicker<White,Strobe<Blue,White,50,1>,100>,AudioFlicker<Rgb<220,0,255>,Rgb<130,0,160>>,AudioFlicker<Rgb<220,0,255>,Rgb<130,0,160>>,AudioFlicker<Rgb<220,0,255>,Rgb<130,0,160>>>,Gradient<AudioFlicker<Rgb<220,0,255>,Rgb<130,0,160>>,AudioFlicker<Rgb<220,0,255>,Rgb<130,0,160>>,BrownNoiseFlicker<White,Strobe<Blue,White,50,1>,100>,AudioFlicker<Rgb<220,0,255>,Rgb<130,0,160>>,AudioFlicker<Rgb<220,0,255>,Rgb<130,0,160>>>,3500>>,White,40>,180,500,Black>>(),
StylePtr<InOutHelper<LocalizedClash<Lockup<Blast<AudioFlicker<Rgb<220,0,255>,Rgb<130,0,160>>,White,200,100,400>,Pulsing<Gradient<AudioFlicker<Rgb<220,0,255>,Rgb<130,0,160>>,AudioFlicker<Rgb<220,0,255>,Rgb<130,0,160>>,BrownNoiseFlicker<White,Strobe<Blue,White,50,1>,100>,AudioFlicker<Rgb<220,0,255>,Rgb<130,0,160>>,AudioFlicker<Rgb<220,0,255>,Rgb<130,0,160>>,AudioFlicker<Rgb<220,0,255>,Rgb<130,0,160>>>,Gradient<AudioFlicker<Rgb<220,0,255>,Rgb<130,0,160>>,AudioFlicker<Rgb<220,0,255>,Rgb<130,0,160>>,BrownNoiseFlicker<White,Strobe<Blue,White,50,1>,100>,AudioFlicker<Rgb<220,0,255>,Rgb<130,0,160>>,AudioFlicker<Rgb<220,0,255>,Rgb<130,0,160>>>,3500>,Pulsing<Gradient<AudioFlicker<Rgb<220,0,255>,Rgb<130,0,160>>,AudioFlicker<Rgb<220,0,255>,Rgb<130,0,160>>,BrownNoiseFlicker<White,Strobe<Blue,White,50,1>,100>,AudioFlicker<Rgb<220,0,255>,Rgb<130,0,160>>,AudioFlicker<Rgb<220,0,255>,Rgb<130,0,160>>,AudioFlicker<Rgb<220,0,255>,Rgb<130,0,160>>>,Gradient<AudioFlicker<Rgb<220,0,255>,Rgb<130,0,160>>,AudioFlicker<Rgb<220,0,255>,Rgb<130,0,160>>,BrownNoiseFlicker<White,Strobe<Blue,White,50,1>,100>,AudioFlicker<Rgb<220,0,255>,Rgb<130,0,160>>,AudioFlicker<Rgb<220,0,255>,Rgb<130,0,160>>>,3500>>,White,40,50>,180,500,Pulsing<HumpFlicker<Cyan,Magenta,50>,BrownNoiseFlicker<Red,Blue,35>,800>>>(), "PPSK"},
{"Jedi_01", "tracks/SK4.wav",
StylePtr<InOutHelper<LocalizedClash<Lockup<Blast<AudioFlicker<DeepSkyBlue,Blue>,HumpFlicker<White,GreenYellow,25>,1000,60,100000000>,AudioFlicker<HumpFlicker<Gradient<AudioFlicker<White,DeepSkyBlue>,BrownNoiseFlicker<Green,Cyan,50>>,Gradient<Cyan,Green,Yellow,White>,30>,DarkOrange>,AudioFlicker<AudioFlicker<Yellow,White>,White>>,HumpFlicker<Green,Yellow,50>,40,50>,195,600,Black>>(),
StylePtr<InOutHelper<LocalizedClash<Lockup<Blast<AudioFlicker<DeepSkyBlue,Blue>,HumpFlicker<White,GreenYellow,25>,1000,60,100000000>,AudioFlicker<HumpFlicker<Gradient<AudioFlicker<White,DeepSkyBlue>,BrownNoiseFlicker<Green,Cyan,50>>,Gradient<Cyan,Green,Yellow,White>,30>,DarkOrange>,AudioFlicker<AudioFlicker<Yellow,White>,White>>,HumpFlicker<Green,Yellow,50>,40,50>,195,600,Pulsing<AudioFlicker<DeepSkyBlue,Black>,BrownNoiseFlicker<DodgerBlue,Black,50>,4000>>>(), "PPSK"},
{"Jedi_02", "tracks/SK5.wav",
StylePtr<InOutHelper<LocalizedClash<Lockup<Blast<AudioFlicker<DeepSkyBlue,White>,HumpFlicker<Green,Magenta,50>,200,40,400>,AudioFlicker<OnSpark<Green,White,200>,White>,AudioFlicker<OnSpark<Green,White,200>,White>>,White,80,50>,175,600,Black>>(),
StylePtr<InOutHelper<LocalizedClash<Lockup<Blast<AudioFlicker<DeepSkyBlue,White>,HumpFlicker<Green,Magenta,50>,200,40,400>,AudioFlicker<OnSpark<Green,White,200>,White>,AudioFlicker<OnSpark<Green,White,200>,White>>,White,80,50>,175,600,Pulsing<AudioFlicker<Cyan,DodgerBlue>,Blinking<White,Rgb16<28626,22863,937>,350,75>,5000>>>(), "PPSK"},
{ "TeensySF", "tracks/venus.wav",
StyleNormalPtr<CYAN, WHITE, 300, 600>(),
StyleNormalPtr<CYAN, WHITE, 300, 800>(), "cyan"},
{ "SmthJedi", "tracks/mars.wav",
StylePtr<InOutSparkTip<EASYBLADE(BLUE, WHITE), 300, 600> >(),
StylePtr<InOutSparkTip<EASYBLADE(BLUE, WHITE), 300, 600> >(), "blue"},
{ "SmthGrey", "tracks/mercury.wav",
StyleFirePtr<RED, YELLOW, 0>(),
StyleFirePtr<RED, YELLOW, 1>(), "fire"},
{ "SmthFuzz", "tracks/uranus.wav",
StyleNormalPtr<RED, WHITE, 300, 600>(),
StyleNormalPtr<RED, WHITE, 300, 600>(), "red"},
{ "RgueCmdr", "tracks/venus.wav",
StyleFirePtr<BLUE, CYAN, 0>(),
StyleFirePtr<BLUE, CYAN, 1>(), "blue fire"},
{ "TthCrstl", "tracks/mars.wav",
StylePtr<InOutHelper<EASYBLADE(OnSpark<GREEN>, WHITE), 300, 600> >(),
StylePtr<InOutHelper<EASYBLADE(OnSpark<GREEN>, WHITE), 300, 600> >(), "green"},
{ "SmthJedi", "tracks/mars.wav",
&style_charging,
StyleNormalPtr<BLACK, BLACK, 300, 800>(), "Battery\nLevel"}
};
BladeConfig blades[] = {
{ 0, WS2811BladePtr<144, WS2811_ACTUALLY_800kHz | WS2811_GRB>(),
WS2811BladePtr<1, WS2811_ACTUALLY_800kHz | WS2811_GRB, blade2Pin, PowerPINS<bladePowerPin4> >()
, CONFIGARRAY(presets) },
};
#endif
#ifdef CONFIG_BUTTONS
Button PowerButton(BUTTON_POWER, powerButtonPin, "pow");
Button AuxButton(BUTTON_AUX, auxPin, "aux");
#endif