movie2serial issue for Processing2.1

Status
Not open for further replies.

mortonkopf

Well-known member
Hello all, Processing 2.1 does not support readstringuntil, it was omitted for some reason. If updating your processing.org software you will need to use a workaround for movie2serial. I have tested it with the below code on a small single teensy 3 array, and it seems to work.

https://github.com/processing/processing/issues/2191

most likely many of you will already know about this, but I could not find a forum post on this. I have substituted in the following code in the processing sketch to replace the readStringuntil:

Code:
  byte bytesIn[] = ledSerial[numPorts].readBytesUntil(10);
      // Convert the byte array to a String
    String line = new String(bytesIn);
 
Last edited:
Wow, your timing couldn't have been better! I just discovered this problem tonight, and your workaround works. Thanks!

Based on my inquiry, the issue is that in Processing 2.1, the serial library now utilizes "JSSC" instead of "RXTX"
 
Status
Not open for further replies.
Back
Top