s=machine.UART(1,9600) s.init(9600,bits=8,parity=None,stop=1) while True: if s.any()>=0: c=s.read(1) s.write(c)