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