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
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
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
great, just wonder if I want to shut it down with the same button ?
thanks
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
Yes, the dtoverlay method still works fine. If you want to avoid the shutdown menu, read our showcase.