import time # Import Time Package
from machine import Pin # Import the Pin Function from the machine package
# Define the LED pins - EX. (GPIO PIN NUMBER, TYPE)
led_red = machine.Pin(11, Pin.OUT) # Red Pin is connected to GPIO 11 and declared as an output
## Never Ending Loop - Therefore the code will repeat forever
while True:
led_red.value(1) # Sets the Value of the pin to 1 - Meaning voltage is supplied to the Pin - LED Status: On
time.sleep(0.5) # Time.Sleep(Delay Time) - The board remains in its previous state for 0.5 seconds
led_red.value(0) # Sets the Value of the pin to 0 - Meaning no voltage is supplied to the Pin - LED Status: Off
time.sleep(0.5) # Another delay of 0.5 seconds
## Read through the code and try understand what it is doing before proceeding