My device is 'Raspberry pi 3 model B' and I want to use GPIO + Python coding to do that.
I found somethings in web but did not work for me (I guess because those methods were for raspberry 2) !
Is there a clear solution (using GPIO + python) for raspberry pi 3 model B to add a shutdown button?