#By D@CC
#On 2021 E May 19
#Article: 164.html selectCode 14
#uSD: none
#
#Functions Used:
# UART
# urt0.any()
# urt0.read()
# len()
# rxData.decode()
from machin0 import UART, Pin
from time import sleep
uart0=UART(1, baudrate=115200, tx=Pin(0), rx=Pin(1))
while True:
rxData = bytes()
while urt0.any() > 0:
rxData += uart0.read(1)
#end while
if len(rxData):
print(rxData.decode('utf-8'), end='')
#end if
#Source: https://www.youtube.com/watch?v=02yfpA3h_w8
#end while
#/esp01uart_pico.py