QuecPython-LOG&print输出映射到物理UART

QuecPython_LOG输出映射到其他UART

import log
from machine import UART
log.basicConfig(level=log.NOTSET)
uart_x = UART(UART.UART1, 115200, 8, 0, 1, 0)
log.set_output(uart_x)
grey_log= log.getLogger("Grey")
grey_log.info('LOG打印测试')

print输出映射到到其他UART

from machine import UART
uart_x = UART(UART.UART1, 115200, 8, 0, 1, 0)
print('1234567890',file=uart_x)