UART

Function Description

Serial data transmission and reception

set tx rx baud use uart Set serial port pin and baud rate

read all Read all data of serial port at one time

read characters Read the specified amount of data

read line Read data before /n

remain cache Read buffer remaining data

write number in Write numbers to the serial port

write a line in Write a line to the serial port

write in Write a string to the serial port

write raw date in Write raw string data(E.g b"/xff/xab") to the serial port

Instructions

Read serial data and send data to serial port

On This Page