From bfcf15da23563e76809b1b87ed72f5e2d986761b Mon Sep 17 00:00:00 2001 From: Phillip Burgess Date: Wed, 12 Dec 2012 15:01:16 -0800 Subject: [PATCH] Adjustments for Processing 2.0 language --- Processing/Adalight/Adalight.pde | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Processing/Adalight/Adalight.pde b/Processing/Adalight/Adalight.pde index 4439a80..a8e0d89 100644 --- a/Processing/Adalight/Adalight.pde +++ b/Processing/Adalight/Adalight.pde @@ -239,6 +239,7 @@ void setup() { // Preview window shows all screens side-by-side size(totalWidth * pixelSize, maxHeight * pixelSize, JAVA2D); + noSmooth(); // A special header / magic word is expected by the corresponding LED // streaming code running on the Arduino. This only needs to be initialized @@ -421,7 +422,8 @@ public class DisposeHandler { } public void dispose() { // 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); } }