IndexOutOfBounds error on my Arduino+Processing code

edited September 2015 in Arduino

When I try to run this code in processing it gives me an "ArrayIndexOutOfBoundsException: 3" error, I think it has something to do with line 8 of the code, but I don't know how to fix it.screenshot01

Answers

  • I have solved it by changing the number 3 of line 8 to a 0 (it represents COM 3), but know I have another doubt. Can I autodetect the COM port where the Arduino is connected so I do not have to change the value if I use another USB port?

Sign In or Register to comment.