Arduino内置教程-通讯
通讯
这些例子包括允许Arduino联系在电脑上运行的Processing sketches。对于更多信息或者下载Processing,请查看processing.org。这里也有可以和每个Arduino sketch通讯的Max/MSP路径。对于更多关于Max/MSP,请看Cycling 74。
- ASCIITable(ASCII表格):示范使用Arduino的高等的串口输出函数。
- 调光器:移动鼠标来改变LED灯的亮度
- 图表:发送数据到电脑,然后在Processing里画出它的图表。
- Midi(乐器数字接口):连续发送MIDI音符信息
- 多串口Mega:使能Arduino Mega上2个串口。
- 物理像素:通过从Processing或者Max/MSP发送数据到Arduino上,使LED开关。
- 读取ASCII字符串:分析整数里一个用逗号分隔的字符串,来使一个LED灯褪色。
- 串口呼叫响应:通过一个呼-应的方法(握手)来发送多个变数
- 串口呼叫响应ASCII:通过一个呼-应的方法(握手)来发送多个变数,并在发送前解码(ASCII)这些数值。
- Serial Event:使用SerialEvent()函数
- 可视颜色混合器:从Arduino发送多个变数到你的电脑,然后在Processing或者Max/MSP上读取这些数据
These examples include code that allows the Arduino to talk to Processing sketches running on the computer. For more information or to download Processing, see processing.org. There are also Max/MSP patches that can communicate with each Arduino sketch as well. For more on Max/MSP see Cycling 74.
ASCIITable: Demonstrates Arduino's advanced serial output functions.
Dimmer: Move the mouse to change the brightness of an LED.
Graph: Send data to the computer and graph it in Processing.
Midi: Send MIDI note messages serially.
Multi Serial Mega: Use two of the serial ports available on the Arduino Mega.
Physical Pixel: Turn a LED on and off by sending data to your Arduino from Processing or Max/MSP.
Read ASCII String: Parse a comma-separated string of integers to fade an LED.
Serial Call Response: Send multiple variables using a call-and-response (handshaking) method.
Serial Call Response ASCII: Send multiple variables using a call-and-response (handshaking) method, and ASCII-encode the values before sending.
Serial Event: Demonstrates the use of SerialEvent().
Virtual Color Mixer: Send multiple variables from Arduino to your computer and read them in Processing or Max/MSP.
获取最新文章: 扫一扫右上角的二维码加入“创客智造”公众号