Search found 1 match

by liolabs1973
Thu 6 Jul 2017 15:37
Forum: Tutorials and support
Topic: Safety Shutdown by a Reset Button
Replies: 3
Views: 5009

Safety Shutdown by a Reset Button

Hi, Here is a small shell script who's can be include in the Raspiboy to perform a safety shutdown Have fun... Lionel #!/bin/bash setup () { echo Setup gpio mode 2 in ; // si biensur le pin 2 est dispo } setup while : do result=`gpio read 2` if [ $result -eq 0 ]; then echo BUTTONPRESSED /dev/null su...