from gpiozero import LED
from gpiozero.pins.rpigpio import RPiGPIOFactory
from time import sleep
# Use BOARD numbering system
factory = RPiGPIOFactory(pin_numbering='BOARD')
led = LED(8, pin_factory=factory) # Pin 8 corresponds to GPIO14 in BOARD numbering
while True:
led.on()
sleep(1)
led.off()
sleep(1)