Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /****** CONFIG_TOP blaster defines ****/
- #ifdef CONFIG_TOP
- #include "proffieboard_v2_config.h"
- #define NUM_BLADES 3
- #define NUM_BUTTONS 2 // First button is fire, second adds Mode Select and third is either Power or Clip Detect.
- // As always, you have to add them in `CONFIG_BUTTONS`.
- const unsigned int maxLedsPerStrip = 144;
- #define CLASH_THRESHOLD_G 2.0 //Affects the shaking for unjamming your weapon.
- #define VOLUME 1500
- #define ENABLE_AUDIO
- #define ENABLE_MOTION
- #define ENABLE_WS2811
- #define ENABLE_SD
- #define ENABLE_BLASTER_AUTO // If you desire to enable AUTO mode.
- #define BLASTER_SHOTS_UNTIL_EMPTY 15 // The capacity of your weapons rounds.
- #define BLASTER_JAM_PERCENTAGE 1 // 0-100. If not defined, random.
- #define ENABLE_SSD1306 //To enable OLED
- #endif
- /****** CONFIG_PROP blaster defines ****/
- #ifdef CONFIG_PROP
- #include "../props/blaster.h"
- #endif
- /****** CONFIG_PROP blaster defines ****/
- #ifdef CONFIG_PRESETS
- Preset presets[] = {
- // Default basic blast color with red audio flicker on blast
- { "E-11", "tracks/mars.wav",
- StylePtr<Lockup<BlastFadeout<BlastFadeout<Black,AudioFlicker<Black,Red>,250,EFFECT_FIRE>,AudioFlicker<Black,Blue>,1500,EFFECT_STUN>,AudioFlicker<Black,Red>>>(),
- StylePtr<Lockup<BlastFadeout<BlastFadeout<Black,AudioFlicker<Black,Red>,250,EFFECT_FIRE>,AudioFlicker<Black,Red>,1500,EFFECT_STUN>,AudioFlicker<Black,Red>>>() },
- "E-11" },
- { "E-11D", "tracks/EzraTheme.wav",
- StylePtr<Layers<AudioFlicker<RotateColorsX<Variation,Blue>,RotateColorsX<Variation,Rgb<0,0,128>>>,BlastL<White>, InOutTrL<TrInstant,TrFade<300>,Pulsing<RotateColorsX<Variation,Blue>,RotateColorsX<Variation,Rgb<0,0,10>>,3000>>>>(),
- StylePtr<Lockup<BlastFadeout<BlastFadeout<Black,AudioFlicker<Black,Red>,250,EFFECT_FIRE>,AudioFlicker<Black,Red>,1500,EFFECT_STUN>,AudioFlicker<Black,Red>>>() },
- "E-11D" }
- ;
- BladeConfig blades[] = {
- { 0, WS281XBladePtr<144, bladePin, Color8::GRB, PowerPINS<bladePowerPin2, bladePowerPin3> >(),
- WS281XBladePtr<20, blade2Pin,Color8::GRB, PowerPINS< bladePowerPin4> >(),
- WS281XBladePtr<1, blade3Pin,Color8::GRB, PowerPINS< bladePowerPin5> >(),
- CONFIGARRAY(presets) },
- };
- #endif
- #ifdef CONFIG_BUTTONS
- Button FireButton(BUTTON_FIRE, powerButtonPin, "fire");
- Button ModeButton(BUTTON_MODE_SELECT, auxPin, "modeselect");
- //Button PowerButton(BUTTON_POWER, aux2Pin, "power"); //A third button to power on/off your weapon
- //Button PowerButton(BUTTON_CLIP_DETECT, aux2Pin, "clip"); //A third button is a clip sensor. It should be closed when the clip is in, and open when the clip is removed.
- #endif
Add Comment
Please, Sign In to add comment