You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
381 B
11 lines
381 B
To use GPIO shutdown for the Raspberry Pi, add following lines in the file /boot/config.txt
|
|
edit file: sudo nano /boot/config.txt
|
|
|
|
# signal power off with green led
|
|
dtoverlay=gpio-poweroff,gpiopin=16
|
|
|
|
# shutdown Pi when joystick button is pressed
|
|
dtoverlay=gpio-shutdown,gpio_pin=26,gpio-pull=up
|
|
|
|
# shutdown Pi when GPIO GP0 on Hat is set to low
|
|
dtoverlay=gpio-shutdown,gpio_pin=17 |