From e0b3da4856cc618c70e3faddaa3ed3e54f4780ae Mon Sep 17 00:00:00 2001 From: qo-op Date: Thu, 19 Mar 2020 20:11:12 +0000 Subject: [PATCH] Start/Stop GSM Rpi HAT --- debug/GSM_PWRKEY.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 debug/GSM_PWRKEY.py diff --git a/debug/GSM_PWRKEY.py b/debug/GSM_PWRKEY.py new file mode 100755 index 0000000..f62021d --- /dev/null +++ b/debug/GSM_PWRKEY.py @@ -0,0 +1,11 @@ +import RPi.GPIO as GPIO +import time +GPIO.setmode(GPIO.BOARD) +GPIO.setup(7, GPIO.OUT) +while True: + GPIO.output(7, GPIO.LOW) + time.sleep(4) + GPIO.output(7, GPIO.HIGH) + break +GPIO.cleanup() +