G1sms/debug/GSM_PWRKEY.py

11 lines
187 B
Python
Raw Normal View History

2020-03-12 15:06:22 +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()