strawberry-pi-greenhouse/test.py

17 lines
234 B
Python
Raw Normal View History

import time
import os
import RPi.GPIO as GPIO
GPIO.setmode(GPIO.BCM)
pins = [8,10,12,14,18,20,22,24]
for pin in pins:
GPIO.setup(pin, GPIO.OUT)
GPIO.output(10, GPIO.HIGH)
time.sleep(30)
GPIO.output(10, GPIO.LOW)
GPIO.cleanup