【发布时间】:2013-12-12 16:42:20
【问题描述】:
我使用 USB 将 Arduino 连接到我的笔记本电脑,我可以使用 Processing 读取串行数据。
有没有办法将这些数据实时导入本地网络浏览器?例如,显示串行端口值的文本字段?它不必连接到互联网。
Processing 的 JavaScript 版本不支持以下代码,这本来是理想的解决方案。
处理代码为:
myPort = new Serial(this, Serial.list()[0], 9600);
// read a byte from the serial port
int inByte = myPort.read();
// print it
println(inByte);
// now send this value somewhere...?
// ehm...
【问题讨论】:
-
你应该看看这个:github.com/rwaldron/johnny-five。也许它可以帮助你。
标签: javascript arduino processing sensors