Modified views to add the view count info
This commit is contained in:
parent
a4e582c008
commit
dafc690ef7
@ -14,7 +14,7 @@ boolean view_1(Adafruit_SSD1306 &display, void *pData)
|
||||
sprintf(power_str,"BATT(%u%%)", p->powerInfo.level);
|
||||
}
|
||||
|
||||
sprintf(time_str,"RTC:time--> %d:%d:%d\ndate--> %d/%d/%d\nFree RAM : %d\nSdCard : %.2fGB\nPower : %s\n",p->dateTime.hour(), p->dateTime.minute(), p->dateTime.second(), p->dateTime.day(), p->dateTime.month(), p->dateTime.year(),ESP.getFreeHeap(),p->sdCardSize,power_str);
|
||||
sprintf(time_str,"RTC:time--> %d:%d:%d\ndate--> %d/%d/%d\nFree RAM : %d\nSdCard : %.2fGB\nPower : %s\nViews : %u\n",p->dateTime.hour(), p->dateTime.minute(), p->dateTime.second(), p->dateTime.day(), p->dateTime.month(), p->dateTime.year(),ESP.getFreeHeap(),p->sdCardSize,power_str, p->nbViews);
|
||||
display.println(time_str);
|
||||
display.setCursor(0,56);
|
||||
display.println("GLOBAL INFO");
|
||||
|
@ -8,6 +8,7 @@ typedef struct view1Packet
|
||||
DateTime dateTime;
|
||||
float sdCardSize;
|
||||
PowerInfo powerInfo;
|
||||
unsigned char nbViews;
|
||||
} View1Packet;
|
||||
|
||||
//Global info
|
||||
|
Loading…
Reference in New Issue
Block a user