View Full Version : movie2serial update for processing 2.1

02-09-2014, 01:09 PM
Paul, on the next release of octows2811 bundle, the movie2 serial needs a change to be able to work with Processing 2.1 at the current time (this will be corrected on the next processing release, apparently.

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 teensy 3.0 and 3.1 array, and it seems to work.


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:

byte bytesIn[] = ledSerial[numPorts].readBytesUntil(10);
// Convert the byte array to a String
String line = new String(bytesIn);