if (touch_pressed(200, 300, 80, 40)) gpio_write(RELAY_PIN, HIGH); tft_draw_text("HEAT ON", 200, 350, RED);
delay(50);
#include "mtk_tft_v35.h" #include "mtk_gpio.h" void setup() tft_init(320, 480); tft_set_font(&Arial_16); gpio_mode(RELAY_PIN, OUTPUT); tft mtk module v3.5