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