Here you go: XPT2046 touch on ESP8266.
With hardware SPI, I didn’t even have to repurpose UART pins (which should make debugging much easier!). Only catch is that I have to use GPIO0, which needs to be disconnected when reflashing (but no big deal).
Edit: Add one more pin for backlight PWM (the 0x51 command doesn’t do anything on these modules). LED VCC (broken out) draws ~50mA, so you also need a transistor to drive it (the $7 generic modules don’t have one, but some more expensive ones, like the $30 Adafruit, do). Still, there’s plenty ESP GPIOs left (you’ll need to use one of the UART pins, though, if you want backlight control).
]]>Just got ucglib working, haven’t gotten to touch yet, but there should be enough pins: other than shared MOSI, MISO, and clock, the ILI9341 needs CS, data/command, and reset, and the XPT2046 needs CS and interrupt. That’s a total of 3 + 3 + 2 = 8 pins. I believe it’s doable even without reconfiguring UART as GPIO.
]]>