strawberry-pi-greenhouse/test.py

14 lines
178 B
Python
Raw Normal View History

import time
import os
import RPi.GPIO as GPIO
GPIO.setmode(GPIO.BCM)
GPIO.setup(12, GPIO.OUT)
GPIO.output(12, GPIO.HIGH)
time.sleep(5)
GPIO.output(12, GPIO.LOW)
GPIO.cleanup