import machine import utime uart = machine.UART(1) uart.write("hello") # Send "hello" over UART utime.sleep(0.5) while True: if uart.any(): line = uart.readline() print(line)