Hi
I'm using a "china version" of the 2,4" TFT Display / ILI9325 LCD driver
I'm trying to update the display in a loop. I need this for updating the screen, when a value changes.
BUT!
As soon as I uncomment TSPoint p = ts.getPoint(); in the below code, the screen is no longer updating.
The screen is never filled with "WHITE".
If I commet the line again //TSPoint p = ts.getPoint(); everything runs as expected.
Any ideas, what i'm doing wrong ?
Maybe I don't understand the "ts.getPoint()" function ?
void redraw(){
Serial.println("redrawrunning setpoint = "); Serial.println(fSetpoint);
tft.fillScreen(BLACK);
tft.setCursor(0, 0);
tft.setTextColor(WHITE); tft.setTextSize(1);
tft.println("Sousvide controller UV, Okt 2016");
tft.println("");
//Actual Temp
tft.setTextColor(RED); tft.setTextSize(3);
tft.print("ACT:"); tft.print(fActualValue); tft.print(" C");
tft.println("");
tft.println("");
//Setpoint temperature
tft.setTextColor(BLUE); tft.setTextSize(3);
tft.print("SET:"); tft.print(fSetpoint); tft.print(" C");
//UPArrow
tft.fillTriangle(50, 150, 75, 100, 100, 150, GREEN);
//Downarrow
tft.fillTriangle(145, 150, 120, 100, 170, 100, GREEN);
}
void loop(void) {
//TSPoint p = ts.getPoint();
delay(2000);
redraw();
delay(1000);
tft.fillScreen(WHITE);
delay(1000);
} // END LOOP