I recently gutted a cheap baselit TXQ saber (with an illuminated button) and threw a Proffie 3.9 board inside, and I was curious if it’s currently possible to mirror the status LED onto the button instead of setting it up as a blade? If not possible through software, how catastrophic would it be if I wired the button LED directly to the same pads as the status LED on the PCB? Thanks.
It’s absolutely possible to do through software.
The code that controls the status led can be found here:
If you “borrow” this code and make it into a Function, then you can use it in a style and do whatever you want with it.
I’m not too software savvy but I’m assuming this means I’d have maintain a fork of the OS locally, and there’s no way to do this with the current release? I’ll try messing around with that and see if I can get it to work. Thanks for the quick reply, btw.
You can keep your new function in the config file, so there is no need for an actual fork.
If you don’t want to do that either, you can create a PR for the new function, I can then include it in ProffieOS, which would mean that I would maintain it, and everybody could use it.
And would this mean it would work on 2.2 boards, even though they don’t have an LED on the board itself?
You would need some ifdefs or something for the charging code, but other than that it could work just fine on a v2 board.
You might want to build something better that uses different colors tough.
(Maybe start with some variety of ChargingStyle.)