G1sms/debug/GSM_PWRKEY.py

12 lines
188 B
Python
Raw Normal View History

2020-03-19 21:11:12 +01:00
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()