Advertisement
NoSloppy

Blind Knight ctrl box LEDs

Jan 31st, 2022 (edited)
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.22 KB | None | 0 0
  1. // Styes for Green and Red Arrows
  2. // StylePtr<InOutHelper<White,300,800,Pulsing<Black,White,3000>>>(),
  3. // StylePtr<InOutHelper<Blinking<Black,White,1500,500>,300,800,Blinking<Black,Blinking<Black,White,500,500>,2000,500>>>(),
  4. // or
  5. // Red Arrow Blinks when blade is ON
  6. //StylePtr<InOutHelper<Blinking<Black,Rgb<130,130,130>,1500,500>,1,1,Sequence<Rgb<130,130,130>,Black,200,30,0b0000000000000000,0b0010101010101000>>>(),
  7. // Green Arrow
  8. //StylePtr<InOutHelper<Rgb<85,85,85>, 1, 1, Sequence<Rgb<85,85,85>, Black, 200, 30, 0b1010101010101010,0b1000000000000000>>>(),
  9.  
  10. struct AccentsLED {
  11. static constexpr float MaxAmps = 0.02;
  12. static constexpr float MaxVolts = 3.2;
  13. static constexpr float P2Amps = 0.015;
  14. static constexpr float P2Volts = 3.0; // maybe should be 2.7ish?
  15. static constexpr float R = 0; // Resistor value
  16. static const int Red = 255;
  17. static const int Green = 255;
  18. static const int Blue = 255;
  19. };
  20.  
  21.  
  22. BladeConfig blades[] = {
  23. { 0, WS281XBladePtr<132, bladePin, Color8::GRB, PowerPINS<bladePowerPin2, bladePowerPin3> >(),
  24. SimpleBladePtr<AccentsLED, NoLED, NoLED, NoLED, bladePowerPin6, -1, -1, -1>(),
  25. SimpleBladePtr<AccentsLED, NoLED, NoLED, NoLED, bladePowerPin5, -1, -1, -1>(),
  26. CONFIGARRAY(presets) },
  27. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement