utouch ssd1963 5 inch problem

The code you offered, do I put this in the library or on my main sketch?

No, that just what I did to map my screen. But you may be able to reverse it for yours. Use this as a test and see what you get map(tx, 5, 235, 0, 479)"