I’m trying to program a 5-led accent that would work in two stages. When the saber is on, it would fade into a white rotating section. When off, and this is the part i can’t figure out, I’d like it to be a rising bar graph that displays a single color (this would be set to the blade color) where either the max height of the bar graph indicates the battery level, or where the brightness of the color does.
Another thing that has me stumped - I’m currently using this code from Fett’s style generator, which gives me the bar graph without the battery info, but it only stays on for 6 seconds or so.
Sound like you have #define IDLE_OFF_TIME, as that will turn the blade Off and end your effect after whatever time it’s set for. You’ll want to increase if you’re wanting the Off effect to last longer.
You can choose “Battery Percent Rising Bar Graph” in Off Behavior (OS7 Library) for the effect you’re after. Just set the Color to Base Color to match your main blade color. You may need to refresh the page if it’s not in dropdown.
as far as the wiring, it’s running off the 5v pad for positive and is on an led pad like the rest of the blades. so it should behave the same as the rest normally. i think the 5v is just shutting off with the booster poweroff. i’ll have to power it from the battery - normally i would but i forgot while i was wiring the damn thing.