We are about to switch to a new forum software. Until then we have removed the registration on this forum.
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.
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?