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:53:08 +00:00
|
|
|
GPIO.setup(8, GPIO.OUT)
|
2022-07-06 16:34:46 +00:00
|
|
|
|
2022-07-06 16:53:08 +00:00
|
|
|
GPIO.output(8, GPIO.HIGH)
|
2022-07-06 16:45:21 +00:00
|
|
|
time.sleep(5)
|
2022-07-06 16:53:08 +00:00
|
|
|
GPIO.output(8, GPIO.LOW)
|
2022-07-06 16:41:32 +00:00
|
|
|
|
2022-07-06 16:34:46 +00:00
|
|
|
GPIO.cleanup
|