print("Hello, ESP32!")
#####################################
###### IMPORT LIBRARIES
from machine import Pin
from time import sleep # Use 'time' instead of 'utime'
#####################################
###### PIN CONFIGURATIONS
# Replace '2' with your desired GPIO pin number for ESP32
led_pin = Pin(32, Pin.OUT) # GPIO 2 is commonly used for LED
#####################################
###### MAIN ROUTINE
def main():
while True:
# Call the LED subroutine here
sub_led()
#####################################
###### SUBROUTINE FOR LED
def sub_led():
led_pin.on() # Turn LED ON
sleep(0.5) # Wait 0.5 seconds
led_pin.off() # Turn LED OFF
sleep(0.5) # Wait 0.5 seconds
#####################################
###### EXECUTE MAIN ROUTINE
if __name__ == '__main__':
main()