strawberry-pi-greenhouse/test.py

16 lines
265 B
Python
Raw Normal View History

import time
import os
import RPi.GPIO as GPIO
GPIO.setmode(GPIO.BOARD)
pins = [8,10,12,16,18,22,24,26]
for pin in pins:
print(pin)
GPIO.setup(pin, GPIO.OUT)
# GPIO.output(pin, True)
time.sleep(float(0.5))
GPIO.output(pin, False)
GPIO.cleanup