Advertisement
NoSloppy

Untitled

May 4th, 2020
23
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.02 KB | None | 0 0
  1.  
  2. { "BattLevl", "tracks/StarWarsTheme.wav",
  3. &style_charging,
  4. StylePtr<InOutHelper<White,300,800,Pulsing<Black,White,3000>>>(),
  5. StylePtr<InOutHelper<Blinking<Black,White,1500,500>,300,800,Blinking<Black,Blinking<Black,White,500,500>,2000,500>>>(), "16.Battery\nLevel"
  6. }
  7.  
  8. };
  9.  
  10.  
  11. struct AccentsLED {
  12. static constexpr float MaxAmps = 0.02;
  13. static constexpr float MaxVolts = 3.3;
  14. static constexpr float P2Amps = 0.11;
  15. static constexpr float P2Volts = 3.2;
  16. static constexpr float R = 0; // Resistor value
  17. static const int Red = 255;
  18. static const int Green = 255;
  19. static const int Blue = 255;
  20. };
  21.  
  22. BladeConfig blades[] = {
  23. { 0, WS2811BladePtr<123, WS2811_ACTUALLY_800kHz | WS2811_GRB>(),
  24. SimpleBladePtr<AccentsLED, NoLED, NoLED, NoLED, bladePowerPin6, -1, -1, -1>(),
  25. SimpleBladePtr<AccentsLED, NoLED, NoLED, NoLED, bladePowerPin5, -1, -1, -1>(),
  26. CONFIGARRAY(presets) },
  27. };
  28. #endif
  29.  
  30. #ifdef CONFIG_BUTTONS
  31. Button PowerButton(BUTTON_POWER, powerButtonPin, "pow");
  32. Button AuxButton(BUTTON_AUX, auxPin, "aux");
  33. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement