tft.touchx()
tft.touchy()
These functions return the translated coordinates, taking into account the rotation of the display, and the range of legal coordinates for the display
The pulsetrain from the MISO output from the touch controller should have about 3.3 V for the high level, 0 volt for the low level
If these levels are not correct the esp8266 wil not be able to reliably read the data.
Will post the patch required for translating the touch coordinates to match the ones from the display later tonight
You will need to recompile espbasic from source to implement them