This Max/MSP patch reads in a serial string like this:
Rnnn
Gnnn
Bnnn
Where nnn is an ASCII-formatted decimal number from 0 to 255. It then converts the values into the RGB colod for the patch’s background.
An Arduino program to send the appropriate data follows.
To use the patch, copy the text and paste it into a new max patch window.
Thanks to David Mellis and Jamie Allen for the collaboration. These patches were written for a one-day Arduino workshop at NIME 07 hosted by the three of us. The Arduino program comes from the Arduino example files, by David Mellis.
Technorati Tags: arduino, pcomp, physical computing