#https://github.com/raspberrypi/pico-micropython-examples/blob/master/uart/loopback/uart.py
from machine import UART, Pin
import time
print('hello')
uart1 = UART(1, baudrate=9600, tx=Pin(8), rx=Pin(9))
uart0 = UART(0, baudrate=9600, tx=Pin(0), rx=Pin(1))
txData = b'hello world\n\r'
uart1.write(txData)
time.sleep(0.1)
rxData = bytes()
while uart0.any() > 0:
rxData += uart0.read(1)
print('hello')