import time import os import RPi.GPIO as GPIO GPIO.setmode(GPIO.BCM) GPIO.setup(24, GPIO.OUT) GPIO.output(24, GPIO.HIGH) time.sleep(5) GPIO.output(24, GPIO.LOW) GPIO.cleanup