2022-07-06 16:34:46 +00:00
|
|
|
import time
|
|
|
|
import os
|
|
|
|
import RPi.GPIO as GPIO
|
|
|
|
|
|
|
|
|
2022-07-06 16:52:36 +00:00
|
|
|
GPIO.setmode(GPIO.BOARD)
|
2022-07-06 16:34:46 +00:00
|
|
|
|
2022-07-06 16:49:10 +00:00
|
|
|
GPIO.setup(22, GPIO.OUT)
|
2022-07-06 16:34:46 +00:00
|
|
|
|
2022-07-06 16:49:10 +00:00
|
|
|
GPIO.output(22, GPIO.HIGH)
|
2022-07-06 16:45:21 +00:00
|
|
|
time.sleep(5)
|
2022-07-06 16:49:10 +00:00
|
|
|
GPIO.output(22, GPIO.LOW)
|
2022-07-06 16:41:32 +00:00
|
|
|
|
2022-07-06 16:34:46 +00:00
|
|
|
GPIO.cleanup
|