I have a Proffie v3.9 board wired up with touch buttons and accent LEDs. For the sake of reproducing this I’ve simplified the config down.
What I’m seeing with this setup is that the touch value being reported by the board to serial monitor stays at the TOUCH_MAX value of 8192 no matter if I’m touching the touch button or not.
Additionally, bladePowerPin4 is powered on when the blade is off even though my simplified config does not have it configured. In the case where I have a config which utilizes bladePowerPin4 it’s constantly flickering when the blade is off but behaves as defined in the blade style when the blade is on.
I tried this myself, and it does indeed not work.
I know I tested it at some point, but I think that was a very long time ago, because the code does not work with current V3 boards as written.
I’ve uploaded a fixed version of stm32l4_touchbutton.h to github.
You can either download the latest version from there and replace then one in your ProffieOS, or just get the latest master version from github and try that.
Let me know if it works for you.
Once it does, I will include it in an updated version of ProffieOS.
Found and fixed another bug. Seems to work better now.
I’m still having problems with “auxPin” though. It’s not reporting reasonable touch values for some reason. Not sure if that is something unique to my setup or if it’s another bug somewhere. Please test and let me know.
Yep they’re now being triggered independently. I have mine set for powerButtonPin and aux2Pin currently and disabled auxPin since it wasn’t working for me as well. Was thinking it was just an issue on my end. This saber is wired for all 3 button pins so if you have a fix for it I can re-enable auxPin and test it.