import time
from machine import UART
# Initialize the UART for serial communication
uart = UART(0, baudrate=115200)
# Function to send data over UART
def send_data(19):
uart.write(19)
# Setup function (runs once)
def setup():
print("Hello, ESP32!")
# Loop function (runs repeatedly)
def loop():
while True:
# put your main code here
time.sleep_ms(10) # This speeds up the simulation