GMU:Max/MSP visual programming/Zhenhuan Weng: Difference between revisions

From Medien Wiki
No edit summary
No edit summary
Line 12: Line 12:
[[:File:Led_dimmer.ino]]
[[:File:Led_dimmer.ino]]


Introduction:  
Introduction: We could send bytes to the board from MAX that could access the computer serial port to control led brightness. Firstly we need "print" to send a serial ports. "serial b 9600" means 9600 bits per second, it is the default for the Arduino, and is perfectly adequate for the majority of users, but we could also change it to other speeds: Serial.begin(2400) would set the Arduino to transmit at 2400 bits per second. I used "Slider" to output values and to control the brightness of LED.
 


[[File:6 play web cam.maxpat]]
[[File:6 play web cam.maxpat]]