from gpiozero import LED

from gpiozero import PMWLED

from time import sleep

import random

#in parentheses, insert pin numbers your LEDs are attached to

lights = {PMWLED(4), PMWLED(5), PMWLED(7), PMWLED(13)}

while True:

led = random.choice(lights)

led.pulse()

sleep(1)

led.off()

sleep(0.1)

--

Amanda Haughs

Digital Innovation TOSA

@mshaughs

mshaughs.blogspot.com