def __init__(self, start_time, stop_time): self.start_time = start_time self.stop_time = stop_time # lamp is connected to GPIO pin2. self.lights = OutputDevice(2)