NoSloppy

Untitled

Feb 13th, 2021
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.34 KB | None | 0 0
  1. .................... rest of config above goes here ..................
  2.  
  3. { "testfont", "tracks/theforce1.wav",
  4. StylePtr<Stripes<16000,100,Red,Black,Green,Black,Blue,Black,White,Black,Yellow,Black,Rgb<60,0,255>,Black>>(),
  5. StylePtr<Stripes<16000,100,Red,Black,Green,Black,Blue,Black,White,Black,Yellow,Black,Rgb<60,0,255>,Black>>(),
  6. StylePtr<Stripes<16000,100,Red,Black,Green,Black,Blue,Black,White,Black,Yellow,Black,Rgb<60,0,255>,Black>>(),
  7. StylePtr<Stripes<16000,100,Red,Black,Green,Black,Blue,Black,White,Black,Yellow,Black,Rgb<60,0,255>,Black>>(),
  8. StylePtr<Stripes<16000,100,Red,Black,Green,Black,Blue,Black,White,Black,Yellow,Black,Rgb<60,0,255>,Black>>(),
  9. // Red Arrow Blinks when blade is ON
  10. StylePtr<InOutHelper<Blinking<Black,Rgb<130,130,130>,1500,500>, 1, 1, Sequence<Rgb<130,130,130>, Black, 200, 30, 0b0000000000000000,0b0010101010101000>>>(),
  11. // Green Arrow
  12. StylePtr<InOutHelper<Rgb<85,85,85>, 1, 1, Sequence<Rgb<85,85,85>, Black, 200, 30, 0b1010101010101010,0b1000000000000000>>>(),
  13. "testfont"},
  14.  
  15. };
  16.  
  17. struct AccentsLED {
  18. static constexpr float MaxAmps = 0.02;
  19. static constexpr float MaxVolts = 3.2;
  20. static constexpr float P2Amps = 0.10;
  21. static constexpr float P2Volts = 3.0;
  22. static constexpr float R = 0; // Resistor value
  23. static const int Red = 255;
  24. static const int Green = 255;
  25. static const int Blue = 255;
  26. };
  27.  
  28.  
  29. BladeConfig blades[] = {
  30. { 0, // 264 pixel KR_Pixel_Stick
  31. WS281XBladePtr<264, bladePin, Color8::GRB, PowerPINS<bladePowerPin2, bladePowerPin3>,DefaultPinClass, 900000 >() , // HiltPCB and KR_Pixel_Stick Main Blade in parallel
  32. WS281XBladePtr<5, blade3Pin, Color8::GRB, PowerPINS<bladePowerPin2, bladePowerPin3> >(), // ChassisPCB
  33. SubBlade (4, 7, WS281XBladePtr<8, blade2Pin, Color8::GRB, PowerPINS<bladePowerPin2, bladePowerPin3> >() ), // Chamber Top
  34. SubBlade (0, 3, NULL), // Chamber Bottom
  35. SimpleBladePtr<AccentsLED, NoLED, NoLED, NoLED, bladePowerPin5, -1, -1, -1>(), // Red Arrow
  36. SimpleBladePtr<AccentsLED, NoLED, NoLED, NoLED, bladePowerPin6, -1, -1, -1>(), // Green Arrow
  37. CONFIGARRAY(KR_Pixel_Stick),
  38. "01_KR_Pixel_Stick", },
Advertisement
Add Comment
Please, Sign In to add comment