Add new file

This commit is contained in:
imvec
2022-08-25 15:53:46 +00:00
parent 56d449ae9a
commit a7f62c992a

11
boton.py Normal file
View File

@@ -0,0 +1,11 @@
from gpiozero import Button
from subprocess import check_call
from signal import pause
def disparo():
check_call(['python3', '/home/pi/PicaPiKAP/scripts/PicaPiKAP.py'])
shutdown_btn = Button(27, hold_time=2)
shutdown_btn.when_held = disparo
pause()