thisCatIsPolite
Member
I am using Teensy 4.0 and library ILI9341_T4 which is written especially for this display and this microcontroller. The display itself works, it displays image properly. However, I haven't succeed in implementing touch feedback to my program. I connected the display this way:
#define PIN_SCK 13
#define PIN_MISO 12
#define PIN_MOSI 11
#define PIN_DC 10
#define PIN_CS 9
#define PIN_RESET 6
#define PIN_BACKLIGHT 255
#define PIN_TOUCH_IRQ 1
#define PIN_TOUCH_CS 2


When I try to debug x, y, z values in the Serial Monitor I see random values.
I connected T_CLK to the same pin as SCK; T_DIN to MOSI (SDI); T_DO to MISO (SDO). Probably that's why it does not detect touch properly.
#define PIN_SCK 13
#define PIN_MISO 12
#define PIN_MOSI 11
#define PIN_DC 10
#define PIN_CS 9
#define PIN_RESET 6
#define PIN_BACKLIGHT 255
#define PIN_TOUCH_IRQ 1
#define PIN_TOUCH_CS 2


When I try to debug x, y, z values in the Serial Monitor I see random values.
I connected T_CLK to the same pin as SCK; T_DIN to MOSI (SDI); T_DO to MISO (SDO). Probably that's why it does not detect touch properly.