#import the GPIO and time package
import RPi.GPIO as GPIO
import time
GPIO.setmode(GPIO.BOARD)
GPIO.setup(35, GPIO.OUT) #This is output 1
GPIO.setup(38, GPIO.OUT) #This is output 2
GPIO.setup(32, GPIO.OUT) #This is output 3
GPIO.setup(37, GPIO.OUT) #This is output 4
GPIO.setup(33, GPIO.OUT) #This is output 5
GPIO.setup(40, GPIO.OUT) #This is output 6
GPIO.setup(13, GPIO.OUT) #This is output 7
GPIO.setup(7, GPIO.OUT) #This is output 8
for i in range(1):
time.sleep(10) #This line can be deleted. This 10 seconds was added to give me time to get my camera ready after I started the script.
chan_list = [35,7]
GPIO.output(chan_list,True)
time.sleep(1)
GPIO.output(chan_list,False)
time.sleep(2)
chan_list = [38,13]
GPIO.output(chan_list,True)
time.sleep(1)
GPIO.output(chan_list,False)
time.sleep(10)
chan_list = [32,40]
GPIO.output(chan_list,True)
time.sleep(1)
GPIO.output(chan_list,False)
time.sleep(10)
chan_list = [37,33]
GPIO.output(chan_list,True)
time.sleep(1)
GPIO.output(chan_list,False)
time.sleep(1)
GPIO.cleanup()