2012-09-11 41 views

回答

1

从你提到的链接,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

我越来越0端口Serial.list(),如果我打印Serial.list()的长度是从0 – ademar111190

+0

听起来像是你的库ISN” t在你的硬件上找到任何串口)这个API无法帮到你 - 这是一个操作系统/配置问题。 – paulsm4

+0

明白,知道任何方式来检查它是否正确? – ademar111190