From 56d1709cfe5eda92ecc499b8f3f9b802d91dedf7 Mon Sep 17 00:00:00 2001 From: imvec Date: Fri, 2 Sep 2022 12:42:03 +0000 Subject: [PATCH] Delete boton.py --- boton.py | 11 ----------- 1 file changed, 11 deletions(-) delete mode 100644 boton.py diff --git a/boton.py b/boton.py deleted file mode 100644 index a317c80..0000000 --- a/boton.py +++ /dev/null @@ -1,11 +0,0 @@ -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()