It works only after switching on and then not always. After reboot does not work.
-
Arduino Due is a Chinese clone.
-
Screen - https://www.geeetech.com/wiki/index.php/3.2TFT_LCD
3.2" Color TFT LCD 320 x 240 Resolution 65,536 Colors (16 Bit)
Powerful 16 Bit Microcontroller(SSD1289) Built-in video RAM buffer
Integrated Resistive Touchscreen Integrated SD card 5V Operating Voltage
LED Backlight
The touch IC is XPT2046
https://misc.ws: LCD_ID_Reader Version 1.2 It produces the code: 0x8989 -
No Adapter shield.
-
Wires checked for contact. Replaced several times. The problem is not in them.
UTFT myGLCD(TFT_PROC, TFT_PIN_RS, TFT_PIN_WR, TFT_PIN_CS, TFT_PIN_RST); // Remember to change the model parameter to suit your display module!
#define TFT_PROC ITDB32S //3.2
#define TFT_PIN_RS 38
#define TFT_PIN_WR 39
#define TFT_PIN_CS 40
#define TFT_PIN_RST 41
#define TFT_PIN_RD 42
Data pin D0-D7 -> 30-37, D8-D15 ->22-29
URTouch myTouch(TS_PIN_CLK, TS_PIN_CS, TS_PIN_IN, TS_PIN_OUT, TS_PIN_IRQ); // Initialize touchscreen
UTFT_Buttons myButtons(&myGLCD, &myTouch); // Finally we set up UTFT_Buttons
#define TS_PIN_CLK 53 //URTouch(byte tclk, byte tcs, byte tdin, byte dout, byte irq);
#define TS_PIN_CS 49
#define TS_PIN_IN 51 //MOSI
#define TS_PIN_OUT 50 //MISO
#define TS_PIN_IRQ 48
-
URTouch v 2.02
-
I have a very large code, so my questions relate to examples provided with the library.
In this case, the touchscreen only works when the power is turned on, and then in 80%.
When overloaded, the touchscreen does not work.