pdf-icon

UART

Feature Description

Serial port data transmission and reception

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

read all Read all data from the serial port at once

read characters Read a specified number of characters

read line Read data up to a newline character

remain cache Read remaining data in the buffer

write number in Write a number to the serial port

write a line in Write a line of text to the serial port

write in Write a string to the serial port

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

Usage Instructions

Read data from the serial port and send data to the serial port

On This Page