// #include <SPI.h>
// #include <TFT_eSPI.h>
bool hasrun = false;
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
Serial.println("Hello, ESP32!");
}
void loop() {
int m = 0, s = 0, tt = 500;
for(int t = 0; t < tt + 1; t++){
m = t / 60;
s = t % 60;
if(hasrun == false){
// Serial.print(m + String(" ") + s + String(" "));
if(m < 1){
Serial.printf(":%02d\n", s);
}else{
Serial.printf("%d:%02d\n", m, s);
}
if(t >= tt) hasrun = true;
}
}
// put your main code here, to run repeatedly:
delay(10); // this speeds up the simulation
}