title: Processing Code "Error, disabling_serialEvent() in Arduino
body: <p>I receive this error when trying to run my arduino and Processing</p>
  
  <pre><code>Error, disabling serialEvent() for /dev/cu.usbmodem1451 null
  </code></pre>
  
  <p>I am running process 2 and Arduino 1.6.5 on a MAC OSX 10.9.5</p>
  
  <p>I am super new to processing and arduino . I am just trying to use three potentiometers to control the RGB values of the background color.</p>
  
  <p>Arduino code:</p>
  
  <pre><code>int potPin = 0;
  //int potPinB = 1;
  //int potPinC = 2;
  
  void setup() 
  {
   Serial.begin(9600);
  }
  
  void loop()
  {
    int val = map(analogRead(potPin), 0, 1023, 0, 255);
    Serial.println(val);
    delay(500);
    //int valB = map(analogRead(potPinB), 0, 1023, 0, 255);
    //Serial.println(valB);
    //delay(50);
    //int valC = map(analogRead(potPinA), 0, 1023, 0, 255);
    //Serial.println(valC);
    //delay(50);
  }
  </code></pre>
  
  <p>Processing code:</p>
  
  <pre><code>import processing.serial.*;
  
  Serial port;
  
  float val = 0;
  //float valB = 1; // another analog input
  //float valC = 2; // another analog input
  
  void setup() 
  {
    size(500, 500); 
    port = new Serial(this, "/dev/cu.usbmodem1451", 9600);
    port.bufferUntil('\n');
    if (frame != null); 
    frame.setResizable(true);
   }
  void draw () 
  {
  background(val,255,150);
  }
  void serialEvent (Serial port)
  {
    val = float(port.readStringUntil('\n'));
  }
  </code></pre>