Start/Stop GSM Rpi HAT

This commit is contained in:
qo-op 2020-03-19 20:11:12 +00:00
父節點 bf8a2c626f
當前提交 e0b3da4856
共有 1 個檔案被更改,包括 11 行新增0 行删除

11
debug/GSM_PWRKEY.py Executable file
查看文件

@ -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()