Adjustments for Processing 2.0 language

This commit is contained in:
Phillip Burgess 2012-12-12 15:01:16 -08:00
parent 435f5950ea
commit bfcf15da23
1 changed files with 3 additions and 1 deletions

View File

@ -239,6 +239,7 @@ void setup() {
// Preview window shows all screens side-by-side // Preview window shows all screens side-by-side
size(totalWidth * pixelSize, maxHeight * pixelSize, JAVA2D); size(totalWidth * pixelSize, maxHeight * pixelSize, JAVA2D);
noSmooth();
// A special header / magic word is expected by the corresponding LED // A special header / magic word is expected by the corresponding LED
// streaming code running on the Arduino. This only needs to be initialized // streaming code running on the Arduino. This only needs to be initialized
@ -421,7 +422,8 @@ public class DisposeHandler {
} }
public void dispose() { public void dispose() {
// Fill serialData (after header) with 0's, and issue to Arduino... // Fill serialData (after header) with 0's, and issue to Arduino...
Arrays.fill(serialData, 6, serialData.length, (byte)0); // Arrays.fill(serialData, 6, serialData.length, (byte)0);
java.util.Arrays.fill(serialData, 6, serialData.length, (byte)0);
if(port != null) port.write(serialData); if(port != null) port.write(serialData);
} }
} }