Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Styes for Green and Red Arrows
- // StylePtr<InOutHelper<White,300,800,Pulsing<Black,White,3000>>>(),
- // StylePtr<InOutHelper<Blinking<Black,White,1500,500>,300,800,Blinking<Black,Blinking<Black,White,500,500>,2000,500>>>(),
- // or
- // 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.015;
- static constexpr float P2Volts = 3.0; // maybe should be 2.7ish?
- 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, WS281XBladePtr<132, bladePin, Color8::GRB, PowerPINS<bladePowerPin2, bladePowerPin3> >(),
- SimpleBladePtr<AccentsLED, NoLED, NoLED, NoLED, bladePowerPin6, -1, -1, -1>(),
- SimpleBladePtr<AccentsLED, NoLED, NoLED, NoLED, bladePowerPin5, -1, -1, -1>(),
- CONFIGARRAY(presets) },
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement