Skip to content

Instantly share code, notes, and snippets.

from datetime import datetime
import RPi.GPIO as GPIO
GPIO.setmode(GPIO.BCM)
GPIO.setup(17,GPIO.OUT)
def lights_on():
""" Turn the lights on. """
GPIO.output(17,GPIO.LOW)