Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- { "BattLevl", "tracks/StarWarsTheme.wav",
- &style_charging,
- StylePtr<InOutHelper<White,300,800,Pulsing<Black,White,3000>>>(),
- StylePtr<InOutHelper<Blinking<Black,White,1500,500>,300,800,Blinking<Black,Blinking<Black,White,500,500>,2000,500>>>(), "16.Battery\nLevel"
- }
- };
- struct AccentsLED {
- static constexpr float MaxAmps = 0.02;
- static constexpr float MaxVolts = 3.3;
- static constexpr float P2Amps = 0.11;
- static constexpr float P2Volts = 3.2;
- static constexpr float R = 0; // Resistor value
- static const int Red = 255;
- static const int Green = 255;
- static const int Blue = 255;
- };
- BladeConfig blades[] = {
- { 0, WS2811BladePtr<123, WS2811_ACTUALLY_800kHz | WS2811_GRB>(),
- SimpleBladePtr<AccentsLED, NoLED, NoLED, NoLED, bladePowerPin6, -1, -1, -1>(),
- SimpleBladePtr<AccentsLED, NoLED, NoLED, NoLED, bladePowerPin5, -1, -1, -1>(),
- CONFIGARRAY(presets) },
- };
- #endif
- #ifdef CONFIG_BUTTONS
- Button PowerButton(BUTTON_POWER, powerButtonPin, "pow");
- Button AuxButton(BUTTON_AUX, auxPin, "aux");
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement