hi im tryng to get touch to work on my display but i only get this strange output
ets Jan 8 2013,rst cause:4, boot mode:(3,6)
wdt reset
load 0x4010f000, len 3424, room 16
tail 0
chksum 0x2e
load 0x3fff20b8, len 40, room 8
tail 0
chksum 0x2b
csum 0x2b
v00042bb0
~ld
my setup is a nodeMCU 1.0 board (ESP8266) and 2.8" LCD TFT ILI9341 display
my program is just the defalut touchscreen test example on the xpt2046 library, here is the code
#include <XPT2046_Touchscreen.h>
#include <SPI.h>
#define CS_PIN 8
XPT2046_Touchscreen ts(CS_PIN); // Param 2 - NULL - No interrupts
//XPT2046_Touchscreen ts(CS_PIN, 255); // Param 2 - 255 - No interrupts
//XPT2046_Touchscreen ts(CS_PIN, TIRQ_PIN); // Param 2 - Touch IRQ Pin - interrupt enabled polling
void setup() {
Serial.begin(115200);
ts.begin();
// ts.begin(SPI1); // use alternate SPI port
ts.setRotation(1);
while (!Serial && (millis() <= 1000)){
delay(1000);
}
}
void loop() {
if (ts.touched()) {
TS_Point p = ts.getPoint();
Serial.print("Pressure = ");
Serial.print(p.z);
Serial.print(", x = ");
Serial.print(p.x);
Serial.print(", y = ");
Serial.print(p.y);
delay(300);
Serial.println();
}
}