This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

grlib demo in Starterware

 I use the grlib demo code from the  Starterware,  why calculate the  X&Y coordinate from the ADC value as  follows?

   

xdata = (((xdata * 2130) - (xdata * 5))/10000) - 53;
ydata = (((xdata * 5) + (ydata * 1321))/10000) - 29;

And where is the origin? the Left-top corner??