Advertisement
NoSloppy

vektra_CONFIG_TOP

Feb 23rd, 2023
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.72 KB | None | 0 0
  1. // BC_Vektra_7.x
  2.  
  3. #ifdef CONFIG_TOP
  4. #include "proffieboard_v2_config.h"
  5. #define NUM_BLADES 1
  6. #define NUM_BUTTONS 1
  7. // #define DUAL_POWER_BUTTONS // BC Make both buttons identical for 1-btn use... useful? **not working 100%
  8.  
  9. // ------ Audio Stuff --------
  10.  
  11. #define VOLUME 1500
  12. #define BOOT_VOLUME 200
  13. #define ENABLE_AUDIO
  14. // #define SPEAK_BLADE_ID
  15. // #define ENABLE_I2S_OUT
  16. // #define ENABLE_SPDIF_OUT
  17. // #define LINE_OUT_VOLUME 2000 // SPDIF out
  18. // #define FILTER_CUTOFF_FREQUENCY 100
  19. // #define FILTER_ORDER 8
  20. // #define FEMALE_TALKIE_VOICE // BC now canon OS6
  21. #define NO_REPEAT_RANDOM // BC now canon
  22. #define KILL_OLD_PLAYERS // BC now canon
  23. #define DISABLE_TALKIE // I feel I'm not gonna like this
  24.  
  25. // ------ Blade Stuff ------
  26.  
  27. #define ENABLE_WS2811
  28. const unsigned int maxLedsPerStrip = 144;
  29. // New define that can speed up processing a bit. Basically, it can calculate the colors for the next
  30. // blade (or the next frame for the same blade) even though it's not done feeding out the data for the
  31. // data in the color buffer yet. Equivalent to just increasing maxLedsPerStrip.
  32. // #define EXTRA_COLOR_BUFFER_SPACE 30
  33. // #define SHARED_POWER_PINS
  34. // #define BLADE_DETECT_PIN blade3Pin
  35. // #define ENABLE_POWER_FOR_ID PowerPINS<bladePowerPin2, bladePowerPin3>
  36. // #define BLADE_ID_CLASS ExternalPullupBladeID<bladeIdentifyPin, 33000>
  37. // #define BLADE_ID_CLASS BridgedPullupBladeID<bladeIdentifyPin, 9> // TX pad
  38. // This will make it use the speed-of-charging-a-capacitor method of blade ID which sometimes works without resistors.
  39. // Blade ID can detect if a blade is connected or not, but it won't actually reach the NO_BLADE value, so I would recommend using something like 200000 instead of NO_BLADE.
  40. // #define BLADE_ID_CLASS SnapshotBladeID<bladeIdentifyPin>
  41. // Millis is BladeID scan interval. If the blade ID comes out the same as before, it will do nothing.
  42. // If it comes out different, it will do FindBladeAgain(), which will basically initialize the saber from scratch and load the right settings for the new id().
  43. // It will only work with neopixel blades, and it probably requires SHARED_POWER_PINS to work.
  44. // #define BLADE_ID_SCAN_MILLIS 1000
  45.  
  46. // ------ SD Card Stuff -------
  47.  
  48. #define ENABLE_SD
  49. // #define SAVE_STATE
  50. // #define SAVE_VOLUME
  51. // #define SAVE_PRESET
  52. #define SAVE_COLOR_CHANGE
  53. // #define SAVE_DYNAMIC_DIMMING
  54. // Upload overwrites presets.ini/tmp unless this is defined
  55. // #define KEEP_SAVEFILES_WHEN_PROGRAMMING
  56. // ------- OLED stuff ----------
  57.  
  58. // #define ENABLE_SSD1306
  59. // #define OLED_FLIP_180 // BC now canon
  60. // #define USE_AUREBESH_FONT // BC now canon
  61. // #define OLED_SYNCED_EFFECTS
  62. // #define PLI_OFF_TIME 60 * 5 * 1000
  63. // #define OLED_USE_BLASTER_IMAGES
  64. // #define POV_INCLUDE_FILE "1024px-Star_Wars_Logo.svg_144_SC_POV_data.h"
  65. // #define POV_INCLUDE_FILE "Raiden_123_FC_POV_data.h"
  66. // #define POV_INCLUDE_FILE "JohnCena_144_8b_POV_data.h"
  67. // Turns power to the OLED display off once SCREEN_OFF state. (Either IDLE_OFF_TIME or PLI_OFF_TIME) **Not really needed
  68. // #define DISPLAY_POWER_PINS PowerPINS<bladePowerPin6>
  69.  
  70. // ------ System Stuff --------
  71.  
  72. // #define ENABLE_DEBUG
  73. // #define NO_BATTERY_MONITOR
  74. // #define ENABLE_SERIAL //Bluetooth
  75. // #define DISABLE_COLOR_CHANGE
  76. // #define ENABLE_DEVELOPER_COMMANDS
  77. #define DISABLE_DIAGNOSTIC_COMMANDS
  78. #define IDLE_OFF_TIME 60 * 5 * 1000
  79. #define MOTION_TIMEOUT 60 * 5 * 1000
  80. // #define ORIENTATION ORIENTATION_FETS_TOWARDS_BLADE
  81. // #define ORIENTATION ORIENTATION_USB_TOWARDS_BLADE
  82. // #define ORIENTATION ORIENTATION_TOP_TOWARDS_BLADE
  83. // #define ORIENTATION ORIENTATION_BOTTOM_TOWARDS_BLADE
  84. // #define ORIENTATION ORIENTATION_SDA_TOWARDS_BLADE
  85. // #define ORIENTATION ORIENTATION_SERIAL_TOWARDS_BLADE
  86. // The following changes the angle required to register twists on curved hilts.
  87. // Example is for Assaj Ventress curved hilt install.
  88. // #define ORIENTATION_ROTATION 0,-20,0
  89.  
  90. // #define CONFIG_STARTUP_DELAY 15000 // BC now canon
  91. #define DISABLE_BASIC_PARSER_STYLES // Standard, Advanced, Old School original templated styles etc...
  92.  
  93. // ------- Motion and Gesture stuff -------
  94.  
  95. #define ENABLE_MOTION
  96. #define CLASH_THRESHOLD_G 3.5
  97. // #define BC_SWING_ON // Motion time out causing false ignitions on preset switch. This is annoying but possibly resolved with I2C updates.
  98. // #define BC_STAB_ON
  99. #define BC_THRUST_ON
  100. // #define BC_TWIST_ON
  101. #define BC_TWIST_OFF
  102. // #define BC_FORCE_PUSH
  103. // #define BC_FORCE_PUSH_LENGTH 5
  104. #define ENABLE_AUTO_SWING_BLAST // BC Multiblast continues as long as swinging within 1 second.
  105. #define ENABLE_SPINS
  106. // #define GESTURE_AUTO_BATTLE_MODE
  107. #define BC_LOCKUP_DELAY 200
  108. // #define NO_BLADE_NO_GEST_ONOFF // If using blade detect, No Blade = No Gesture ignitions or retractions
  109.  
  110. // ------- Custom / Experimental / Alpha-Beta stuff ---------
  111.  
  112. // #define ENABLE_GESTURE_MENU // PSISTORM prop - cool stuff! like the TrySound else beep function.
  113.  
  114. // -------- BC Prop Stuff --------
  115.  
  116. // #define NO_VOLUME_MENU // self evident. But why?
  117. // #define BC_SWAP // *** GONE. now both swap and SPAM BLAST available on toggle full time
  118.  
  119. // -------- Blaster Stuff ----------
  120.  
  121. // #define ENABLE_BLASTER_AUTO
  122. // #define BLASTER_SHOTS_UNTIL_EMPTY 15 // (whatever number)
  123. // #define BLASTER_JAM_PERCENTAGE 10 // if not defined, random.
  124.  
  125. #endif
  126.  
  127. #ifdef CONFIG_PROP
  128. #include "../props/saber_BC_buttons_personal.h"
  129. #endif
  130.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement