Main Content

串行设备

读取和写入连接到 Arduino® 硬件的串行设备

在使用串行流函数之前,请使用 arduino 创建一个 Arduino 对象。

您还可以使用 Arduino 资源管理器来配置串行通信接口,并使用该接口对连接到 Arduino 硬件的串行设备读写数据。

函数

deviceConnection to serial device on Arduino or ESP32 hardware (自 R2019b 起)
readRead data from serial device (自 R2019b 起)
writeWrite data to serial device (自 R2019b 起)

疑难解答

Serial Device Issues

Tips to fix issues for serial devices.