Hello, I’m a new user here. In the last month I’ve successfully built 2 lightsabers that I’m very happy about.
However, in my second build, I wired an illuminated switch as per the following image.
In the config file I used also the one generated by the same webpage, so I have a blade config that looks like the following:
BladeConfig blades[] = {
{ 0, WS281XBladePtr<144, bladePin, Color8::GRB, PowerPINS<bladePowerPin2, bladePowerPin3> >(),
SimpleBladePtr<CreeXPE2WhiteTemplate<550>, NoLED, NoLED, NoLED, blade5Pin, -1, -1, -1>()
, CONFIGARRAY(presets) },
};
As far as I understand, the led on my button is treated as another blade, but with a single pixel. What I tried first, was duplicating the blade styles (as if I had 2 blades), but this resulted in the LED always turning white (regardless of the blade style color). In some styles, it doesn’t even turn on.
What I want is the LED to mimic what is happening in the neopixel stick. Maybe mimic one of the pixels in the stick? How can I achieve that?
Thanks!