Changing the way the pi shutdown

Started by sander2506, January 13, 2016, 04:00:30 AM

sander2506

Is it possible to change the script so when u press the button for 1-3 sec it will power off.
and when pressed longer than 3 sec. it will reboot?

I have a nintendo switch to turn the pi on and off.

Felix

Yes but to match those exact timings I'm afraid it would require a firmware change in the ATXRaspi.

sander2506

the timing isn't that important.
to switch the reset and the power off in the script that wold be nice.

Felix

You can do that if you want to do some atttiny coding, there is an ISP programmer header on the board. You will just need to determine the pins, unfortunately I don't have a schematic or code to share but should be pretty straight forward if you've done it before.