0
我使用processing lib和我想创建一个虚拟串口用它,并与oter读,有读串口很多例子,但我没有找到如何打开一个串口,如何我可以做到这一点。处理打开一个虚拟串口
我使用processing lib和我想创建一个虚拟串口用它,并与oter读,有读串口很多例子,但我没有找到如何打开一个串口,如何我可以做到这一点。处理打开一个虚拟串口
从你提到的链接,http://www.processing.org/reference/libraries/serial/Serial.html:
// Example by Tom Igoe
import processing.serial.*;
// The serial port:
Serial myPort;
// List all the available serial ports:
println(Serial.list());
// Open the port you are using at the rate you want:
myPort = new Serial(this, Serial.list()[0], 9600);
// Send a capital A out the serial port:
myPort.write(65);
我越来越0端口Serial.list(),如果我打印Serial.list()的长度是从0 – ademar111190
听起来像是你的库ISN” t在你的硬件上找到任何串口)这个API无法帮到你 - 这是一个操作系统/配置问题。 – paulsm4
明白,知道任何方式来检查它是否正确? – ademar111190