Show Posts
Pages: [1]
1  Using Arduino / Interfacing w/ Software on the Computer / Problem with communicating from Mac/Processing/SerialPort on: December 01, 2012, 03:16:07 pm
I am at chapter 6 of Getting Started with Arduino ( and I am having problem with my Processing code.   Specifically:

 String arduinoPort = Serial.list()[0]; // I checked that the right port is returned
 port = new Serial(this, arduinoPort, 9600); // port was previously declared as "Serial port;"

Cause this problem:
" To use the serial library, first open
  Applications -> Utilities ->
  and enter the following:
  sudo mkdir -p /var/lock
  sudo chmod 777 /var/lock
  Exception in thread "Animation Thread" java.lang.RuntimeException: Please use Tools ? Fix the Serial Library.
   at processing.serial.Serial.<init>(
   at processing.serial.Serial.<init>(
   at example_8a_lamp_sketch_processing.setup(
   at processing.core.PApplet.handleDraw(
   at processing.core.PGraphicsJava2D.requestDraw(
(the rest of the code is here:

Any ideas ?

Thanks a lot !

Pages: [1]