I just installed a saber with two illuminated switches, and one is a custom-made neopixel-lit one, and the other is a standard single-color one.
I’m trying to set up a pretty simple set of bladestyles so that when the saber is off, both LEDs turn on, then there is a staggered off, and then they both come back on at the same time, etc. and when the saber is on, one has an LED lit, it goes off, and then the other LED blinks twice in the time it takes the first LED to come back on.
This is where I’m at atm (I’m struggling through the style editor… so if you have any general recommendations for tips, trick, and better things to do, please let me know)
StylePtr<Layers<Sequence<Orange,Black,50,36,0,0,111000000111>,InOutTrL<TrFade<0>,TrFade<0>,Blinking<Orange,Black,3500,500>>>>(),
StylePtr<Layers<Blinking<White,Black,1200,600>,InOutTrL<TrFade<0>,TrFade<0>,Blinking<White,Black,3750,250>>>>(),
I’m using the sequence style for the one LED since I seemed to gather that you can only have two colors in the blinking style (also, please correct my terminology if/when I’m wrong).
The two LEDs turn on at different times when booting up the saber, and then they don’t keep their timing it doesn’t seem, so the “car blinker” phenomenon is effectively what’s happening here, and I have no clue if it’s possible to fix this. I have a feeling maybe not, due to the differences in the way the two LEDs are driven, but, I figured I would ask.
My BladeConfig section:
BladeConfig blades[] = {
{ 0, WS281XBladePtr<116, bladePin, Color8::GRB, PowerPINS<bladePowerPin2, bladePowerPin3> >(),
WS281XBladePtr<1, blade4Pin, Color8::GRB, PowerPINS<bladePowerPin4> >(),
SimpleBladePtr<CreeXPE2WhiteTemplate<550>, NoLED, NoLED, NoLED, bladePowerPin6, -1, -1, -1>(),
CONFIGARRAY(presets) },