NoSloppy

CommonAnodeRGB_LED_config

Mar 1st, 2021 (edited)
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.20 KB | None | 0 0
  1. struct RedLEDleg {
  2. static constexpr float MaxAmps = 0.02;
  3. static constexpr float MaxVolts = 2.2;
  4. static constexpr float P2Amps = 0.0;
  5. static constexpr float P2Volts = 0.0;
  6. static constexpr float R = 0; // Resistor value
  7. static const int Red = 255;
  8. static const int Green = 0;
  9. static const int Blue = 0;
  10. };
  11.  
  12. struct GreenLEDleg {
  13. static constexpr float MaxAmps = 0.02;
  14. static constexpr float MaxVolts = 3.2;
  15. static constexpr float P2Amps = 0.0;
  16. static constexpr float P2Volts = 0.0;
  17. static constexpr float R = 0; // Resistor value
  18. static const int Red = 0;
  19. static const int Green = 255;
  20. static const int Blue = 0;
  21. };
  22.  
  23. struct GreenLEDleg {
  24. static constexpr float MaxAmps = 0.02;
  25. static constexpr float MaxVolts = 3.2;
  26. static constexpr float P2Amps = 0.0;
  27. static constexpr float P2Volts = 0.0;
  28. static constexpr float R = 0; // Resistor value
  29. static const int Red = 0;
  30. static const int Green = 0;
  31. static const int Blue = 255;
  32. };
  33.  
  34.  
  35.  
  36. BladeConfig blades[] = {
  37. { 0,
  38. WS281XBladePtr<144, bladePin, Color8::GRB, PowerPINS<bladePowerPin2, bladePowerPin3> >(),
  39. SimpleBladePtr<RedLEDleg, GreenLEDleg, GreenLEDleg, NoLED, bladePowerPin4, bladePowerPin5, bladePowerPin6, -1>(),
  40. CONFIGARRAY(presets),
Advertisement
Add Comment
Please, Sign In to add comment