pdf-icon

UART

API

Serial data transmitting and receiving

set tx rx baud use uart Setting the serial port pins and baud rate

read all Read all data from the serial port at once

read characters Read the specified amount of data

read line Read data before /n

remain cache Read the remaining data in the buffer

write number in Write numbers to the serial port

write a line in Write a string to the serial port

write in Writing strings to the serial port

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

Instructions for use

Read serial port data and send data to serial port

On This Page