- A button
- female header
- A resister
- unzip the zip
- open /etc/rc.local with nano
sudo nano /etc/rc.local
- add codes below in front of the final line:
exit 0*sudo nohup python /home/pi/Pi_Power_Button/poweroffbut.py &sudo nohup python /home/pi/Pi_Power_Button/rebootbut.py &exit 0 - Ctrl + X to exit, remember to press y to save.
- Reboot.
- Circuit:

