UART

功能说明

串口数据收发

set tx rx baud use uart 设置串口引脚和波特率

read all 一次性读取串口全部数据

read characters 读取指定数量的数据

read line 读取/n前的数据

remain cache 读取缓冲区剩余数据

write number in 向串口写数字

write a line in 向串口写一行字符串

write in 向串口写字符串

write raw date in 向串口写入原始数据(形如 b"/xff/xab")

使用说明

读取串口数据并向串口发送数据

On This Page