from machine import UART, Pin
import time
# Initialize UART (TX on GP0, RX on GP1)
uart = UART(0, baudrate=9600, tx=Pin(0), rx=Pin(1))
# Send data over UART
while True:
uart.write("Hello, Wokwi UART!\n") # Send a message
print("Data sent over UART!") # Log locally
time.sleep(1)