I have a file that is not my code, its code for controlling a 3d matrix display. I have updated my arduino to 1.8.2 and the code is for the chipkit uc32.
The code is throwing too many errors to list them all here, all the errors are the same basic problem.
here is the first subroutine that throws the error.
void displayCube(int side, int x, int y, int z, int color){
sprite mySprite(side,side,side);
mySprite.outline(color);
mySprite.place = {x,y,z};
mySprite.setIt();
delay(50);
mySprite.clearIt();
}
This is the error i get
m_Animations:89: error: assigning to an array from an initializer list
mySprite.place = {x,y,z};
I am assuming that i would have to change the code to this to fix this error.
void displayCube(int side, int x, int y, int z, int color){
sprite mySprite(side,side,side);
mySprite.outline(color);
mySprite.place [0] = x;
mySprite.place [1] = y;
mySprite.place [2] = z;
mySprite.setIt();
delay(50);
mySprite.clearIt();
}
My question is what changed in the IDE to cause this error to start happening when the code would actually compile in earlier versions. i make the assumption it compile as is at some point otherwise it would NOT have been written this way in the first place.
Basically i would have to rewrite the entire file to fix every time an array is initialized in this old way with the braced comma separated list.
What version of the Arduino IDE allows arrays to be initialized the old way, as is stands now just about every example in the uc32 chipkit core fails to compile with these errors.