Advertisement
Guest User

TCSS Default

a guest
Oct 29th, 2023
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.91 KB | None | 0 0
  1. #ifdef CONFIG_TOP
  2. #include "proffieboard_v3_config.h"
  3. #define NUM_BLADES 5
  4. #define NUM_BUTTONS 2
  5. #define VOLUME 1000
  6. const unsigned int maxLedsPerStrip = 144;
  7. #define CLASH_THRESHOLD_G 1.0
  8. #define ENABLE_AUDIO
  9. #define ENABLE_MOTION
  10. #define ENABLE_WS2811
  11. #define ENABLE_SD
  12. #define SHARED_POWER_PINS
  13. #endif
  14. #ifdef CONFIG_PROP
  15. #include "../props/saber_fett263_buttons.h"
  16. #endif
  17.  
  18. #ifdef CONFIG_PRESETS
  19. static StyleFactory* myStyle = StylePtr<InOutHelper<LocalizedClash<Blast<RotateColorsX<Variation, Red>, White>, White>,300,800>>();
  20. Preset presets[] = {
  21. { "TeensySF", "tracks/venus.wav",
  22. myStyle,
  23. myStyle,
  24. myStyle,
  25. myStyle,
  26. myStyle
  27. },
  28. { "SmthJedi", "tracks/mars.wav",
  29. myStyle,
  30. myStyle,
  31. myStyle,
  32. myStyle,
  33. myStyle
  34. },
  35. { "SmthGrey", "tracks/mercury.wav",
  36. myStyle,
  37. myStyle,
  38. myStyle,
  39. myStyle,
  40. myStyle
  41. },
  42. { "SmthFuzz", "tracks/uranus.wav",
  43. myStyle,
  44. myStyle,
  45. myStyle,
  46. myStyle,
  47. myStyle
  48. },
  49. { "RgueCmdr", "tracks/venus.wav",
  50. myStyle,
  51. myStyle,
  52. myStyle,
  53. myStyle,
  54. myStyle
  55. },
  56. { "TthCrstl", "tracks/mars.wav",
  57. myStyle,
  58. myStyle,
  59. myStyle,
  60. myStyle,
  61. myStyle
  62. }
  63. };
  64. BladeConfig blades[] = {
  65. { 0, WS281XBladePtr<132, bladePin, Color8::GRB, PowerPINS<bladePowerPin2, bladePowerPin3> >(),
  66. SubBladeWithStride(0, 15, 2, WS281XBladePtr<16, blade2Pin, Color8::GRB, PowerPINS<bladePowerPin2, bladePowerPin3> >()),
  67. SubBladeWithStride(1, 15, 2, NULL),
  68. WS281XBladePtr<6, blade3Pin, Color8::GRB, PowerPINS<bladePowerPin4, bladePowerPin5> >(),
  69. WS281XBladePtr<6, blade4Pin, Color8::GRB, PowerPINS<bladePowerPin1> >()
  70. , CONFIGARRAY(presets) },
  71. };
  72. #endif
  73.  
  74. #ifdef CONFIG_BUTTONS
  75. Button PowerButton(BUTTON_POWER, powerButtonPin, "pow");
  76. Button AuxButton(BUTTON_AUX, auxPin, "aux");
  77. #endif
  78.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement