# ------------------------------------------------------------
# Copyright © 2026/2027 Dr. Mohammad Alja'afreh. All rights reserved.
# PSUT IoT Engineering Learning Platform
# ------------------------------------------------------------
# ---- Import the LED class from gpiozero.
from gpiozero import LED
 
# ---- Create an LED object on BCM pin 17.
led = LED(17)
 
# ---- Turn the LED on.
led.on()
 
# ---- Wait until the user presses Enter.
input("LED is on. Press Enter to turn it off... ")
 
# ---- Turn the LED off.
led.off()
