char str1[]="O3A";
tft.fillRectangle(19, 29, 98, 108, GREEN);char str1[]="O3A";
tft.fillRectangle(19, 29, 98, 108, GREEN);
if((x>=19&&x<=98) and (y>=29&&y<=108))
{
{ buttonState =buttonState+1;// Read the value from the specified digital pin, high or low.
delay(300);
if (buttonState %2==1)
{digitalWrite(20,HIGH);}
else
{digitalWrite(20,LOW);}
}
}
Click here to download Code zip.