June 15, 2021 at 9:50 AM #1 As title, a press button are expected to be installed recently. Pi-tools addons is downloaded from the add-ons download.Could any one tell me how to code the GPIO ?thanks
June 15, 2021 at 2:21 PM #2 You don't need rpi-tools, just use the gpio-shutdown dtoverlay and a button connected to GPIO 3 and GND.See /flash/overlays/README for more details.so long,Hias
June 15, 2021 at 3:15 PM #3 great, just wonder if I want to shut it down with the same button ?thanks
June 15, 2021 at 4:15 PM #4 You can configure the GPIO in the gpio-shutdown dtoverlay, then you can use one button connected to that GPIO for power-off and another one on GPIO 3 for power on.so long,Hias
June 15, 2021 at 10:58 PM Official Post #5 Yes, the dtoverlay method still works fine. If you want to avoid the shutdown menu, read our showcase.