16 Channel Raspberry Pi Relay Example with Christmas Lights
Channel: David Hay
Date: 2015-01-25

#streamlined python source code:
import time
GPIO.setmode(GPIO.BCM)
pins = [2, 3, 4, 17, 27, 22, 10, 9, 14, 15, 18, 23, 24, 25, 8, 7]
for pin in pins:
   GPIO.setup(pin, GPIO.OUT) 
   GPIO.output(pin, GPIO.LOW)
   time.sleep(0.001)
   GPIO.output(pin, GPIO.HIGH)
   time.sleep(0.001)
GPIO.cleanup