highlightshadow

Untitled

Apr 29th, 2023
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.93 KB | None | 0 0
  1. /*
  2. Ahsoka
  3. Proffie OS6.9 w/ Fett263 buttons
  4.  
  5. ********************************************************************************************************************************
  6. Version History
  7. ---------------
  8. 14/04/2023 1.0 Initial Release
  9.  
  10. ********************************************************************************************************************************
  11. */
  12.  
  13.  
  14. #ifdef CONFIG_TOP
  15. #include "proffieboard_config.h"
  16. #define NUM_BLADES 1
  17. #define NUM_BUTTONS 1
  18. #define VOLUME 1900
  19. const unsigned int maxLedsPerStrip = 144;
  20. #define CLASH_THRESHOLD_G 8.5
  21. #define ENABLE_AUDIO
  22. #define ENABLE_MOTION
  23. #define ENABLE_WS2811
  24. #define ENABLE_SD
  25.  
  26. // Memory Saving defines
  27. //#define DISABLE_DIAGNOSTIC_COMMANDS
  28. #define COLOR_CHANGE_DIRECT
  29. #define DISABLE_BASIC_PARSER_STYLES
  30.  
  31. // Support inverted install proffieboard
  32. // #define ORIENTATION ORIENTATION_USB_TOWARDS_BLADE
  33.  
  34. #define FETT263_TWIST_ON_NO_BM
  35. #define FETT263_TWIST_ON
  36. #define FETT263_TWIST_OFF
  37. #define FETT263_MOTION_WAKE_POWER_BUTTON
  38. #define FETT263_THRUST_ON
  39. //#define FETT263_HOLD_BUTTON_LOCKUP
  40. #define FETT263_LOCKUP_DELAY 200
  41.  
  42. // Timesout For Clash/Gestures (60s * 5 * 1000ms = 5 minutes)
  43. #define MOTION_TIMEOUT 60 * 5 * 1000
  44. // Timeout for Crystal Chamber (60s * 5 * 1000ms = 5 minutes)
  45. #define IDLE_OFF_TIME 60 * 2 * 1000
  46.  
  47. // OS6 specific defines
  48. #define NO_REPEAT_RANDOM
  49.  
  50. #endif
  51.  
  52. // Implement Fett263 buttons
  53. #ifdef CONFIG_PROP
  54. #include "../props/saber_fett263_buttons.h"
  55. #endif
  56.  
  57. #ifdef CONFIG_PRESETS
  58. #include "Canon_Ahsoka_Styles.h" // Include file for blades
  59. Preset presets[] = {
  60.  
  61. { "Cmdr_Tano;common", "common/tracks/sister_track1.wav",
  62. StylePtr<CMDR_TANO>()},
  63.  
  64. { "Crimson_Leader;common", "common/tracks/crimson_track3.wav",
  65. StylePtr<CRIMSON>()},
  66.  
  67. { "DMaul;common", "common/tracks/crimson_track2.wav",
  68. StylePtr<CRIMSON>()},
  69.  
  70. { "Emperor;common", "common/tracks/betray_track1.wav",
  71. StylePtr<EMPEROR>()},
  72.  
  73. { "Fulcrum;common", "common/tracks/crimson_track2.wav",
  74. StylePtr<FULCRUM>()},
  75.  
  76. { "Grand_Hunter;common", "common/tracks/dark_track1.wav",
  77. StylePtr<GRAND_HUNT>()},
  78.  
  79. { "Grand_Master;common", "common/tracks/grandmaster_track2.wav",
  80. StylePtr<GRAND_MASTER>()},
  81.  
  82. { "Foolish;common", "common/tracks/grandmaster_track2.wav",
  83. StylePtr<FOOLISH>()},
  84.  
  85. { "Lothhero;common", "common/tracks/mother_track4.wav",
  86. StylePtr<LOTH>()},
  87.  
  88. { "OB1;common", "common/tracks/ob1_track4.wav",
  89. StylePtr<OB1>()},
  90.  
  91. { "Padawan_Tano;common", "common/tracks/ob1_track6.wav",
  92. StylePtr<PADAWAN_AHSOKA>()},
  93.  
  94. { "Savage_Night;common", "common/tracks/ob1_track7.wav",
  95. StylePtr<SAVAGE>()},
  96.  
  97. { "Sorcerer;common", "common/tracks/Mando_track3.wav",
  98. StylePtr<SORCERER>()},
  99.  
  100. { "Tuskan_Term;common", "common/tracks/tragedy_track1.wav",
  101. StylePtr<TUSKAN>()},
  102.  
  103. { "T_Dooku;common", "common/tracks/dark_track1.wav",
  104. StylePtr<T_DOOKU>()},
  105.  
  106. { "T_Yaddle;common", "common/tracks/dark_track1.wav",
  107. StylePtr<GRAND_MASTER>()},
  108.  
  109. { "T_Ahsoka;common", "common/tracks/dark_track1.wav",
  110. StylePtr<T_AHSOKA>()},
  111.  
  112. { "T_Inquisitor;common", "common/tracks/dark_track1.wav",
  113. StylePtr<T_INQUIS>()},
  114.  
  115. { "T_Quigon;common", "common/tracks/dark_track1.wav",
  116. StylePtr<GRAND_MASTER>()},
  117.  
  118. { "Savage_Opress;common", "common/tracks/ob1_track7.wav",
  119. StylePtr<SAVAGE>()},
  120.  
  121. { "Maul;common", "common/tracks/crimson_track2.wav",
  122. StylePtr<CRIMSON>()},
  123.  
  124. { "BlindCowboy;common", "common/tracks/sister_track1.wav",
  125. StylePtr<CMDR_TANO>()},
  126.  
  127. { "Bandit;common", "common/tracks/sister_track1.wav",
  128. StylePtr<BANDIT>()},
  129.  
  130.  
  131. };
  132.  
  133.  
  134. // Blade Definition for main & accent
  135. BladeConfig blades[] = {
  136. { 0, WS281XBladePtr<125, bladePin, Color8::GRB, PowerPINS<bladePowerPin2, bladePowerPin3> >(),
  137. CONFIGARRAY(presets) },
  138. };
  139. #endif
  140.  
  141. // Buttons Setup
  142. #ifdef CONFIG_BUTTONS
  143. Button PowerButton(BUTTON_POWER, powerButtonPin, "pow");
  144. //Button AuxButton(BUTTON_AUX, auxPin, "aux");
  145. #endif
Advertisement
Add Comment
Please, Sign In to add comment