#include "Display.h"
#include "myTimer.h"
MyTimer timer;
myDisplay dis;
bool  a; char i;
void setup() {
  dis.begin(); 
  dis.printLogo();
  delay(1000);
  dis.clear();
  timer.setCallback([]() {
    a = !a;
    i++;
    if (i > 6){i = 0;dis.wifistatus=!dis.wifistatus;}
    timer.reset();
  });
  timer.setTimeout(Time(2));
}

void loop() {
  dis.printInput(i);
  // dis.btstatus = a;
  dis.printWifiConnected();
  //dis.printSetup(" Data received..\n restarting system in 5 seconds",1);
  //dis.printStb();
  dis.printTop("Karimizhi kuruviye kandeela.mp3");
  // dis.printFront(0);
  dis.print(57);
  timer.run();
}