Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifdef CONFIG_TOP
- #include "proffieboard_v3_config.h"
- #define NUM_BLADES 5
- #define NUM_BUTTONS 2
- #define VOLUME 1000
- const unsigned int maxLedsPerStrip = 144;
- #define CLASH_THRESHOLD_G 1.0
- #define ENABLE_AUDIO
- #define ENABLE_MOTION
- #define ENABLE_WS2811
- #define ENABLE_SD
- #define SHARED_POWER_PINS
- #endif
- #ifdef CONFIG_PROP
- #include "../props/saber_fett263_buttons.h"
- #endif
- #ifdef CONFIG_PRESETS
- static StyleFactory* myStyle = StylePtr<InOutHelper<LocalizedClash<Blast<RotateColorsX<Variation, Red>, White>, White>,300,800>>();
- Preset presets[] = {
- { "TeensySF", "tracks/venus.wav",
- myStyle,
- myStyle,
- myStyle,
- myStyle,
- myStyle
- },
- { "SmthJedi", "tracks/mars.wav",
- myStyle,
- myStyle,
- myStyle,
- myStyle,
- myStyle
- },
- { "SmthGrey", "tracks/mercury.wav",
- myStyle,
- myStyle,
- myStyle,
- myStyle,
- myStyle
- },
- { "SmthFuzz", "tracks/uranus.wav",
- myStyle,
- myStyle,
- myStyle,
- myStyle,
- myStyle
- },
- { "RgueCmdr", "tracks/venus.wav",
- myStyle,
- myStyle,
- myStyle,
- myStyle,
- myStyle
- },
- { "TthCrstl", "tracks/mars.wav",
- myStyle,
- myStyle,
- myStyle,
- myStyle,
- myStyle
- }
- };
- BladeConfig blades[] = {
- { 0, WS281XBladePtr<132, bladePin, Color8::GRB, PowerPINS<bladePowerPin2, bladePowerPin3> >(),
- SubBladeWithStride(0, 15, 2, WS281XBladePtr<16, blade2Pin, Color8::GRB, PowerPINS<bladePowerPin2, bladePowerPin3> >()),
- SubBladeWithStride(1, 15, 2, NULL),
- WS281XBladePtr<6, blade3Pin, Color8::GRB, PowerPINS<bladePowerPin4, bladePowerPin5> >(),
- WS281XBladePtr<6, blade4Pin, Color8::GRB, PowerPINS<bladePowerPin1> >()
- , CONFIGARRAY(presets) },
- };
- #endif
- #ifdef CONFIG_BUTTONS
- Button PowerButton(BUTTON_POWER, powerButtonPin, "pow");
- Button AuxButton(BUTTON_AUX, auxPin, "aux");
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement