Skip to content

Commit

Permalink
Adjustments for Processing 2.0 language
Browse files Browse the repository at this point in the history
  • Loading branch information
PaintYourDragon committed Dec 12, 2012
1 parent 435f595 commit bfcf15d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Processing/Adalight/Adalight.pde
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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);
}
}
Expand Down

0 comments on commit bfcf15d

Please sign in to comment.