Ajout des sources du service à lancer pour mettre en route le GNSS_HAT

This commit is contained in:
2022-09-21 18:07:32 +01:00
parent 63de55dcff
commit a5d94ad4aa

13
src/pwrkey.py Executable file
View File

@@ -0,0 +1,13 @@
#!/usr/bin/python3
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(2)
GPIO.output(7, GPIO.HIGH)
break
GPIO.cleanup()