You probably need an NPN with the collector pulled up to the 9V through a 1k. Tie the collector to the gate of the pFET. The base of the transistor will go to the button and to the micro pin. When the button is pushed the base goes high turning it on and pulling the gate low. Your board is now on and your micro pin needs to go high to keep it on. During inactivity you make the pin low. That turns off the NPN which then takes the gate high and turns off your board. I am so brilliant. I think anyway.





Bookmarks