
#include <Thread.h>
Thread myThread = Thread();
void setup(void) {
  myThread.onRun(niceCallback);
  myThread.setInterval(10000);
}
void loop(void) {
  if (myThread.shouldRun()) {
    myThread.run();
  }
}



void niceCallback() {
  String HI = esp32getHI();
  Serial.println(HI);
  tft.setTextColor(TFT_WHITE, TFT_BLACK);
  tft.setCursor(10, 10, 2);  //设置起始坐标(10, 10)，1 号字体
  tft.println(HI);           //显示文字
  millis();
}