spuder / All-Spark-Cube

Software to control an RGB led cube
20 stars 6 forks source link

Creating row with 0 in z axis gives array out of bounds exception. #15

Closed spuder closed 12 years ago

spuder commented 12 years ago

Create a new object in the executable class (the file with setup) like this

row0100 = new RowObject(1, 0); row0100.displayOneRow(1,0);

If you have 0 in the second parameter it gives array index out of bounds exception

If you have a non 0 it displays properly

row0100 = new RowObject(1, 1); row0100.displayOneRow(1,1);