New Need Help Reducing Code Size

Any table consisting of consecutive integers is redundant, as a lookup can be a simple calculation.

 const uint16_t XYTable[] = {
     0,   1,   2,   3,   4,   5,   6,   7,   8,   9,  10,  11,  
...

After this declaration, XYTable[i] == i unless the array bounds are exceeded.