We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hi all! I'm using Processing for a school project, and while doing my program i needed to do a dialog window which should have a multiple choice with every serial port currently available in the PC.
So, how can i obtain this information? When i try using Serial.list()[1]
without my Arduino connected the program crashes. I've searched but i couldn't find anything! Can you please help me? Thanks in advance.
Answers
It was stupid from me. I reached to obtain the length of this array with
Serial.list().length
. Sorry ;)