Browse Source

Start/Stop GSM Rpi HAT

qo-op 4 months ago
parent
commit
e0b3da4856
1 changed files with 11 additions and 0 deletions
  1. 11 0
      debug/GSM_PWRKEY.py

+ 11 - 0
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()
+