Advertisement
NoSloppy

Untitled

Mar 21st, 2023
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. struct AccentsLED {
  2. static constexpr float MaxAmps = 0.02;
  3. static constexpr float MaxVolts = 3.2;
  4. static constexpr float P2Amps = 0.006;
  5. static constexpr float P2Volts = 3.0;
  6. static constexpr float R = 0; // Resistor value
  7. static const int Red = 255;
  8. static const int Green = 255;
  9. static const int Blue = 255;
  10. };
  11. BladeConfig blades[] = {
  12. { 0, WS281XBladePtr<118, bladePin, Color8::GRB, PowerPINS<bladePowerPin2, bladePowerPin3> >(),
  13. SimpleBladePtr<AccentsLED, NoLED, NoLED, NoLED, bladePowerPin1, -1, -1, -1>(),
  14. SimpleBladePtr<AccentsLED, NoLED, NoLED, NoLED, bladePowerPin4, -1, -1, -1>(),
  15. SimpleBladePtr<AccentsLED, NoLED, NoLED, NoLED, bladePowerPin5, -1, -1, -1>(),
  16. SimpleBladePtr<AccentsLED, NoLED, NoLED, NoLED, bladePowerPin6, -1, -1, -1>(),
  17. CONFIGARRAY(presets)}
  18. };
  19. #endif
  20.  
  21. #ifdef CONFIG_BUTTONS
  22. Button PowerButton(BUTTON_POWER, powerButtonPin, "pow");
  23. Button AuxButton(BUTTON_AUX, auxPin, "aux");
  24. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement