上传者: xiao5438799
|
上传时间: 2022-03-24 16:49:40
|
文件大小: 190KB
|
文件类型: -
Simple Serial
MaxMSP Arduino
int inByte = 0; // incoming serial byte
void setup()
{
Serial.begin(9600);
pinMode(13, OUTPUT); // connect an LED here
}
void loop()
{
Temple University
School of Communications and Theater
Physical Computing Spring 2010
Chris Vecchio
• Serial.read receives one byte at a time
• Click on MaxMSP “97” message: Arduino pin 13 goes high
• Click on MaxMSP “98” message: Arduino pin 13 goes low
• These numbers are single ASCII byte values, arbitrarily chosen