2.8" ST7789V touch do not work when ts.begin is activated!

2.8" ST7789V touch display works OK when //ts.begin is commented. If ts.begin start touch screen operation touch works but display remain white. Program execute tft codes but no display. With <URTouch.h> everything works ok but it takes 3 extra I/O. There might be conflict in SPI handling. I am using following library;

#include <Adafruit_GFX.h>    // Core graphics library
#include <Adafruit_ST7789.h> // Hardware-specific library for ST7789
#include <SPI.h>
Adafruit_ST7789 tft = Adafruit_ST7789(TFT_CS, TFT_DC, TFT_MOSI, TFT_SCLK, TFT_RST);
#include <XPT2046_Touchscreen.h>
XPT2046_Touchscreen ts(CS_PIN);  // Param 2 - NULL - No interrupts
tft.init(240, 320);           // Init ST7789 320x240

That is missing?

Sorry most of the code fell into the bit bucket and is not visible. Show an annotated schematic showing exactly how you have wired it, show powe, ground, power sources and note any lead over 25cm/10"

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.