Hi. I have an analog button that toggles to always On and always Off. Looks like this:
I was wondering how could I make the OnOff SHIM work with it so that when the lever is set to On the Raspberry Pi will power on and when he lever is toggled to Off the Raspberry Pi will perform a clean shutdown.
Thank you in advance.