tft.fillRoundRect(60, 100, 360, 40, 8, RED);
tft.drawRoundRect(60, 100, 360, 40, 8, WHITE);
tft.setCursor(165, 115);
tft.print("LED ON-OFF"); -- GUI button LED
digitalWrite(13, HIGH);
TSPoint p = ts.getPoint();
digitalWrite(13, LOW);
buttonEnabled = true;
pinMode(XM, OUTPUT);
pinMode(YP, OUTPUT);
if (p.z > MINPRESSURE && p.z < MAXPRESSURE) {
//map(value, fromLow, fromHigh, toLow, toHigh)
p.x = map( p.x, TS_MINX, TS_MAXX,0, 480 );
p.y = map( p.y, TS_MINY, TS_MAXY, 0, 320 );
if(p.x>60 && p.x<400 && p.y>100 && p.y<120 )
1. Here i am create simple GUI Button for my LED ON/OFF button.
2. if(p.x>60 && p.x<400 && p.y>100 && p.y<120 ) using this calibration condition my button not working ?
3. how can i solve my 3.5 TFT ILI9486 display issue?
4. How can i find MINX and MINY value?
for that i test simple demo using <touchscreen demo> and <touchscreenshiled> example. but calibration not working ?
Posting a schematic not a frizzy thing would help. Then explain what you want to accomplish.
really , i did not know about it.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.