Grounding GPIO 3 will still turn the Pi 4 on, even if i2c is in use. And you can use an alternate pin for the shutdown dtoverlay.
For example, pin=17 is GPIO 17 physical pin 11.
It's what I use with my Pimoroni Fan Shim. Pressing the button on it grounds GPIO 3 and GPIO 17. GPIO 3 is the on and GPIO 17 is the off.
For example, pin=17 is GPIO 17 physical pin 11.
Code:
dtoverlay=gpio-shutdown,gpio_pin=17,active_low=1,gpio_pull=up
It's what I use with my Pimoroni Fan Shim. Pressing the button on it grounds GPIO 3 and GPIO 17. GPIO 3 is the on and GPIO 17 is the off.
Statistics: Posted by alphanumeric — Sun Mar 17, 2024 10:05 pm