Home › Evil Mad Scientist Forums › LED Matrix Kits › Meggy Jr. Programming Syntax Question › Re: Meggy Jr. Programming Syntax Question
November 21, 2012 at 8:44 pm
#21005
Windell Oskay
Keymaster
Processing supports things like that– it is, after all, java based –but Arduino (and hence, Meggy Jr) do not.
You do not need to create separate variable names for each element of the array– I don’t see any case where that would be a good idea.
To use exactly zero named Point variables, use something like this:
struct Point myArray[3];
myArray[0] = (struct Point) {1,1};
myArray[1] = (struct Point) {4,5};
myArray[2] = (struct Point) {4,1};