Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Custom defined struct for accent LEDS
- struct AccentsLED {
- static constexpr float MaxAmps = 0.02;
- static constexpr float MaxVolts = 3.2;
- static constexpr float P2Amps = 0.006;
- static constexpr float P2Volts = 3.0;
- static constexpr float R = 0; // Resistor value
- static const int Red = 255;
- static const int Green = 255;
- static const int Blue = 255;
- };
- BladeConfig blades[] = {
- { 0,
- // Main Blade
- WS281XBladePtr<144, bladePin, Color8::GRB, PowerPINS<bladePowerPin2, bladePowerPin3> >() ,
- // Red arrow
- SimpleBladePtr<AccentsLED, NoLED, NoLED, NoLED, bladePowerPin5, -1, -1, -1>(),
- // Green Arrow
- SimpleBladePtr<AccentsLED, NoLED, NoLED, NoLED, bladePowerPin6, -1, -1, -1>(),
- CONFIGARRAY(presets) },
- };
- // -----------------------------------------------------
- // | Blade styles for accent LEDs for Control Box Arrows |
- // -----------------------------------------------------
- // Arrow blade styles for "cave scene" blinking patterns, with optional red arrow behavior commented out:
- // When saber is off, Green blink 9 times (18 bits) then is off for 6 blinks (12 bits)
- // When saber is on, Green stays lit
- // When saber is off, Red remains off for 9 blinks (18 bits) then is on for 6 blinks (12 bits)
- // When saber is on, Red //turns off//Blinks//pulse depending on which you have uncommented.
- // Red Arrow Pulses when blade is ON
- // StylePtr<InOutHelper<Pulsing<Black,White,3000>, 1, 1, Sequence<White, Black, 200, 30, 0b0000000000000000,0b0010101010101000>>>(),
- // Red Arrow is OFF when blade is ON
- // StylePtr<InOutHelper<Black, 1, 1, Sequence<White, Black, 200, 30, 0b0000000000000000,0b0010101010101000>>>(),
- // Red Arrow Blinks when blade is ON
- StylePtr<InOutHelper<Blinking<Black,Rgb<130,130,130>,1500,500>, 1, 1, Sequence<Rgb<130,130,130>, Black, 200, 30, 0b0000000000000000,0b0010101010101000>>>(),
- // Green Arrow
- StylePtr<InOutHelper<Rgb<85,85,85>, 1, 1, Sequence<Rgb<85,85,85>, Black, 200, 30, 0b1010101010101010,0b1000000000000000>>>(),
Add Comment
Please, Sign In to add comment