benoduarte

Config file

Sep 13th, 2025
13
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.63 KB | None | 0 0
  1. /****** CONFIG_TOP blaster defines ****/
  2. #ifdef CONFIG_TOP
  3.  
  4. #include "proffieboard_v2_config.h"
  5. #define NUM_BLADES 3
  6. #define NUM_BUTTONS 2 // First button is fire, second adds Mode Select and third is either Power or Clip Detect.
  7. // As always, you have to add them in `CONFIG_BUTTONS`.
  8. const unsigned int maxLedsPerStrip = 144;
  9. #define CLASH_THRESHOLD_G 2.0 //Affects the shaking for unjamming your weapon.
  10. #define VOLUME 1500
  11. #define ENABLE_AUDIO
  12. #define ENABLE_MOTION
  13. #define ENABLE_WS2811
  14. #define ENABLE_SD
  15. #define ENABLE_BLASTER_AUTO // If you desire to enable AUTO mode.
  16. #define BLASTER_SHOTS_UNTIL_EMPTY 15 // The capacity of your weapons rounds.
  17. #define BLASTER_JAM_PERCENTAGE 1 // 0-100. If not defined, random.
  18. #define ENABLE_SSD1306 //To enable OLED
  19.  
  20. #endif
  21.  
  22. /****** CONFIG_PROP blaster defines ****/
  23. #ifdef CONFIG_PROP
  24.  
  25. #include "../props/blaster.h"
  26.  
  27. #endif
  28.  
  29. /****** CONFIG_PROP blaster defines ****/
  30. #ifdef CONFIG_PRESETS
  31.  
  32. Preset presets[] = {
  33. // Default basic blast color with red audio flicker on blast
  34. { "E-11", "tracks/mars.wav",
  35. StylePtr<Lockup<BlastFadeout<BlastFadeout<Black,AudioFlicker<Black,Red>,250,EFFECT_FIRE>,AudioFlicker<Black,Blue>,1500,EFFECT_STUN>,AudioFlicker<Black,Red>>>(),
  36. StylePtr<Lockup<BlastFadeout<BlastFadeout<Black,AudioFlicker<Black,Red>,250,EFFECT_FIRE>,AudioFlicker<Black,Red>,1500,EFFECT_STUN>,AudioFlicker<Black,Red>>>() },
  37. "E-11" },
  38. { "E-11D", "tracks/EzraTheme.wav",
  39. 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>>>>(),
  40. StylePtr<Lockup<BlastFadeout<BlastFadeout<Black,AudioFlicker<Black,Red>,250,EFFECT_FIRE>,AudioFlicker<Black,Red>,1500,EFFECT_STUN>,AudioFlicker<Black,Red>>>() },
  41. "E-11D" }
  42. ;
  43.  
  44. BladeConfig blades[] = {
  45.  
  46.  
  47. { 0, WS281XBladePtr<144, bladePin, Color8::GRB, PowerPINS<bladePowerPin2, bladePowerPin3> >(),
  48. WS281XBladePtr<20, blade2Pin,Color8::GRB, PowerPINS< bladePowerPin4> >(),
  49. WS281XBladePtr<1, blade3Pin,Color8::GRB, PowerPINS< bladePowerPin5> >(),
  50.  
  51. CONFIGARRAY(presets) },
  52. };
  53.  
  54. #endif
  55.  
  56. #ifdef CONFIG_BUTTONS
  57. Button FireButton(BUTTON_FIRE, powerButtonPin, "fire");
  58. Button ModeButton(BUTTON_MODE_SELECT, auxPin, "modeselect");
  59. //Button PowerButton(BUTTON_POWER, aux2Pin, "power"); //A third button to power on/off your weapon
  60. //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.
  61. #endif
Add Comment
Please, Sign In to add comment