Is it possible to use multiple GPIO pin to trigger shutdown event via config.txt? I got a button connected to GPIO 3 that act as standard shutdown and power button. In addition, I use another pin GPIO 5 that connect to a sensor. When sensor output state fall from one to zero, I want to trigger shutdown event as well.
Here is what i add to my config.txt
Code: Select all
It seems like only the last line work as intended. I'm guessing it only works on single pin? Is there any other way to achieve what i want via config.txt? I prefer not to add additional service to poll the pin state if possible, and due to hardware limitation, I cannot add any component or wiring on the board to share the pin.
Thanks in advance.