karawin / Ka-Radio32

esp32 version of Ka-Radio (https://github.com/karawin/Ka-Radio) by jp Cocatrix
525 stars 155 forks source link

Question about Touch TFT #228

Open WillVi1 opened 3 years ago

WillVi1 commented 3 years ago

In the features List stands:

**Touch screen if the hardware supports it.

I ordered now this Banggood TFT: 2.8 Inch ILI9341 240x320 SPI TFT LCD Display Touch Panel SPI Serial Port Module, Brand: Geekcreit

The connection of the TFT itself is no problem. But, how do I connect the Touch hardware an how has touch to be configured?

cheise commented 3 years ago

I have the same Touchscreen....

TOUCH SCREEN

P_TOUCH_CS of the t_cs pin of the touch or 255 if no screen. Other pins are t_clk, t_din, t_do respectively the spi clk, mosi, miso. T_irq is not used. The screen must be calibrated with the command sys.cali[brate]

see in "HardwareConfig.md".

For your first try use "standard_touch.bin" as nvs_partition

You must paralell the connections

t_clk -> spi clk t_din -> mosi t_do -> miso

and one more pin to your ESP -> P_TOUCH_CS

kebibg commented 6 months ago

Hi, I have another board where the touch uses CLK, MOSI, and MISO on different pins as an LCD. When I see the code for LCD and Touch is use one command to initialize the SPI but I need to be on different ones. Are that is possible?

Regards