Professional Documents
Culture Documents
Based on the 'Arduino2Max with DigOut' Max patch and Arduino sketch by
Daniel Jolliffe*/
//VARIABLE DECLARATION
//SETUP FUNCTION
void setup() {
Serial.begin(115200); //Sets the data rate in bits per second (baud) for
//serial data transmission. 115200 is the default
//Bluetooth speed for Arduino.
void loop() {
if (Serial.available() > 0) { //Checks serial port buffer for
serialValue = Serial.read(); //incoming characters.
if (serialValue == 'r') { //If an 'r' character is received
//the pins are read.
//END OF CODE