I have a Pi 3B+ with an adafruit matrix bonnet. Im trying to shutdown the Pi with a single pole double throw switch I had laying around. I'm currently able to get the power on working through GPIO 3. I want to get the shutdown command to work on GPIO 2 if possible by adding dtoverlay=gpio-shutdown,gpio_pin=2 to /boot/config.txt but it doesnt seem to work when I short the gpio pin to the ground. I've also tried it on other gpio 25 with no luck.
This is my first RPi build so I'm wondering if I can only use certain gpio pins for the shutdown command? Since I am using the adafruit Matrix Bonnet to drive an led matrix, I am limited on the number of gpio pins I have available.
I also mentioned how I want to use this on a SPDT switch, will it cause an issue if the gpio pins are continuously held closed once it powers off or on?