• TrillSolved
  • Trill COM port ArrayIndexOutOfBoundsException

Hello!

I have a Trill Hex hooked up to a Teensy 4, and am using the teensyduino library for the arduino ide. I have it all set up, and the serial monitor in the arduino ide is reporting everything as expected.

I have tried to use the Processing sketch to visualize the touch area, however it isnt working. Processing version is 4.3, and I have used the v1.0 Trill processing library found on the github. I did run into the problem of needing to delete the core.jar file from the Trill library to get Processing to use the library, but with that fixed...

When I go to start the Processing Sketch, I get this error;

"Available ports:
COM7
ArrayIndexOutOfBoundsException: Index 2 out of bounds for length 1"

I found another thread that mentioned changing the gPortNumber, but I dont know what number to change it to. I gave it a few guesses and it still didnt work, but to be fair the error in the other thread was "... for length 2", not 1.

Available ports:
COM7

means that there is only one available port. Indexes start from 0, so you need to set gPortNumber = 0 and it shuold work

max changed the title to Trill COM port ArrayIndexOutOfBoundsException .