Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // These Accent LED styles are meant to re-create the deleted cave scene in ROTJ.
- //
- // 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>>>()
- struct AccentsLED {
- static constexpr float MaxAmps = 0.02;
- static constexpr float MaxVolts = 3.2;
- static constexpr float P2Amps = 0.10;
- 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, // 264 pixel KR_Pixel_Stick
- //WS281XBladePtr<123, bladePin, Color8::GRB, PowerPINS<bladePowerPin2, bladePowerPin3>,DefaultPinClass, 900000 >(), // HiltPCB and Main Blade in parallel
- SubBladeWithStride (0, 262, 2, WS281XBladePtr<264, bladePin, Color8::GRB, PowerPINS<bladePowerPin2, bladePowerPin3> >() ), // HiltPCB and KR_Pixel_Stick Main Blade in parallel
- SubBladeWithStride (1, 263, 2, NULL),
- WS281XBladePtr<5, blade3Pin, Color8::GRB, PowerPINS<bladePowerPin2, bladePowerPin3> >(), // ChassisPCB
- SubBlade (4, 7, WS281XBladePtr<8, blade2Pin, Color8::GRB, PowerPINS<bladePowerPin2, bladePowerPin3> >() ), // Chamber Top
- SubBlade (0, 3, NULL), // Chamber Bottom
- SimpleBladePtr<AccentsLED, NoLED, NoLED, NoLED, bladePowerPin5, -1, -1, -1>(), // Red Arrow
- SimpleBladePtr<AccentsLED, NoLED, NoLED, NoLED, bladePowerPin6, -1, -1, -1>(), // Green Arrow
- CONFIGARRAY(KR_Pixel_Stick),
- "01_KR_Pixel_Stick", },
Advertisement
Add Comment
Please, Sign In to add comment