gbrowerjr

my_default_config.h

Oct 25th, 2020
929
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // This is a sample configuration file.
  2. // This saber has:
  3. //   o Proffieboard hardware.
  4. //   o Two buttons
  5. //   o A neopixel blade on LED 1-2-3 and neopixel data 1.
  6.  
  7. #ifdef CONFIG_TOP
  8. // #include "proffieboard_v2_config.h"
  9. #include "proffieboard_config.h"
  10. #define NUM_BLADES 1
  11. #define NUM_BUTTONS 2
  12. #define VOLUME 1300 // rear facing SE speaker-1500, forward facing SE speaker-1300
  13. const unsigned int maxLedsPerStrip = 144;
  14. #define CLASH_THRESHOLD_G 3.0 // rear facing speaker-2.0, forward facing speaker-3.0
  15. #define ENABLE_AUDIO
  16. #define ENABLE_MOTION
  17. #define ENABLE_WS2811 //
  18. #define ENABLE_SD
  19. #define ENABLE_SERIAL
  20. #define KEEP_SAVEFILES_WHEN_PROGRAMMING
  21. #define SAVE_STATE // saves preset, vol and color change
  22. // #define SAVE_PRESET
  23. // define SAVE_VOLUME
  24. // #define SAVE_COLOR_CHANGE
  25. // #define DISABLE_COLOR_CHANGE
  26. #define IDLE_OFF_TIME 16000 // time before deep sleep
  27. //
  28. //                                                 Bluetooth
  29. #define BLE_PASSWORD "625656" // Max 32 characters.
  30. #define BLE_NAME "Graflex1" // Max 9 characters
  31. #define BLE_SHORTNAME "Saber"
  32. #define ENABLE_SSD1306 //
  33. #define SHARED_POWER_PINS
  34. #define ENABLE_POWER_FOR_ID PowerPINS<bladePowerPin1, bladePowerPin2, bladePowerPin3>
  35. #define DISABLE_DIAGNOSTIC_COMMANDS
  36. // #define COLOR_CHANGE_DIRECT // each click changes colors
  37. //
  38. //                                          FET263 Buttons defines
  39. //
  40. //                                          Battle Mode.. Pick one or none
  41. //#define FETT263_BATTLE_MODE_ALWAYS_ON //Battle Mode is always on, toggle controls deactivated OR
  42. #define FETT263_BATTLE_MODE_START_ON //Battle Mode is active with each ignition by default but can be toggled using Aux + Swing control
  43. //
  44. //                                                   Misc
  45. #define FETT263_LOCKUP_DELAY 200
  46. #define FETT263_SWING_ON_SPEED 400 //
  47. #define FETT263_BM_DISABLE_OFF_BUTTON
  48. #define FETT263_FORCE_PUSH
  49. #define FETT263_MULTI_PHASE
  50. #define MOTION_TIMEOUT 60 * 15 * 1000
  51. //                                           swing on.... pick one
  52. #define FETT263_SWING_ON
  53. //#define FETT263_SWING_ON_PREON
  54. //#define FETT263_SWING_ON_NO_BM
  55. //                                             Twist... pick one
  56. #define FETT263_TWIST_OFF
  57. #define FETT263_TWIST_ON
  58. //#define FETT263_TWIST_ON_PREON
  59. //#define FETT263_TWIST_ON_NO_BM
  60. //
  61. //                                              Stab... pick one
  62. #define FETT263_STAB_ON
  63. //#define FETT263_STAB_ON_PREON
  64. //#define FETT263_STAB_ON_NO_BM
  65. //
  66. //                                              Thrust... pick one
  67. #define FETT263_THRUST_ON
  68. //#define FETT263_THRUST_ON_PREON
  69. //#define FETT263_THRUST_ON_NO_BM
  70.  
  71. #endif
  72.  
  73. #ifdef CONFIG_PROP
  74. // #include "../props/saber_sa22c_buttons.h"
  75. #include "../props/saber_fett263_buttons.h"
  76. // #include "../props/saber_shtok_buttons.h"
  77. #endif
  78.  
  79. #ifdef CONFIG_PRESETS
  80.  
  81. Preset presets[] = {
  82. #include "styles/Sith.h"    
  83. //#include "styles/HeroBlades.h"
  84. #include "styles/GraflexBlades.h"
  85. //#include "styles/Grievous.h"
  86. #include "styles/StockBlades.h"    
  87. };
  88.  
  89. BladeConfig blades[] = {
  90. { 645, WS2811BladePtr<125, WS2811_ACTUALLY_800kHz | WS2811_GRB, bladePin, PowerPINS<bladePowerPin1, bladePowerPin2, bladePowerPin3>>(), CONFIGARRAY(presets) },   // Standard VV 34" blade
  91. { 14, WS2811BladePtr<69, WS2811_ACTUALLY_800kHz | WS2811_GRB, bladePin, PowerPINS<bladePowerPin1, bladePowerPin2, bladePowerPin3>>(), CONFIGARRAY(presets) }, // My 19" demo blade
  92. };
  93. #endif
  94.  
  95. #ifdef CONFIG_BUTTONS
  96. Button PowerButton(BUTTON_POWER, powerButtonPin, "pow");
  97. Button AuxButton(BUTTON_AUX, auxPin, "aux");
  98. #endif
  99.  
RAW Paste Data