xPos and yPos need to be in RAM, but the arrays that initialize them can be in progmem.
The compiler takes care of this for you when you declare them with the modifiers "prog_xxx".
And make them eight bit, not sixteen.
xPos and yPos need to be in RAM, but the arrays that initialize them can be in progmem.
The compiler takes care of this for you when you declare them with the modifiers "prog_xxx".
And make them eight bit, not sixteen.