commit
1408665ceb
|
@ -8,8 +8,8 @@ class PageBME280 : public Page
|
||||||
bool keylock = false; // Keylock
|
bool keylock = false; // Keylock
|
||||||
|
|
||||||
public:
|
public:
|
||||||
PageBME280(CommonData &comon){
|
PageBME280(CommonData &common){
|
||||||
comon.logger->logDebug(GwLog::LOG,"Show PageThreeValue");
|
common.logger->logDebug(GwLog::LOG,"Show PageBME280");
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual int handleKey(int key){
|
virtual int handleKey(int key){
|
||||||
|
|
|
@ -9,8 +9,8 @@ class PageBattery : public Page
|
||||||
int average = 0; // Average type [0...3], 0=off, 1=10s, 2=60s, 3=300s
|
int average = 0; // Average type [0...3], 0=off, 1=10s, 2=60s, 3=300s
|
||||||
|
|
||||||
public:
|
public:
|
||||||
PageBattery(CommonData &comon){
|
PageBattery(CommonData &common){
|
||||||
comon.logger->logDebug(GwLog::LOG,"Show PageThreeValue");
|
common.logger->logDebug(GwLog::LOG,"Show PageBattery");
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual int handleKey(int key){
|
virtual int handleKey(int key){
|
||||||
|
|
|
@ -201,7 +201,7 @@ public:
|
||||||
getdisplay().setCursor(10, 65);
|
getdisplay().setCursor(10, 65);
|
||||||
getdisplay().print("Bat.");
|
getdisplay().print("Bat.");
|
||||||
|
|
||||||
// Show batery type
|
// Show battery type
|
||||||
getdisplay().setTextColor(textcolor);
|
getdisplay().setTextColor(textcolor);
|
||||||
getdisplay().setFont(&Ubuntu_Bold8pt7b);
|
getdisplay().setFont(&Ubuntu_Bold8pt7b);
|
||||||
getdisplay().setCursor(90, 65);
|
getdisplay().setCursor(90, 65);
|
||||||
|
@ -218,7 +218,7 @@ public:
|
||||||
getdisplay().setFont(&Ubuntu_Bold16pt7b);
|
getdisplay().setFont(&Ubuntu_Bold16pt7b);
|
||||||
getdisplay().print("V");
|
getdisplay().print("V");
|
||||||
|
|
||||||
// Show batery capacity
|
// Show battery capacity
|
||||||
getdisplay().setTextColor(textcolor);
|
getdisplay().setTextColor(textcolor);
|
||||||
getdisplay().setFont(&DSEG7Classic_BoldItalic20pt7b);
|
getdisplay().setFont(&DSEG7Classic_BoldItalic20pt7b);
|
||||||
getdisplay().setCursor(10, 200);
|
getdisplay().setCursor(10, 200);
|
||||||
|
|
|
@ -256,7 +256,7 @@ public:
|
||||||
if (value1 < 0) {value1 = value1 + 86400;}
|
if (value1 < 0) {value1 = value1 + 86400;}
|
||||||
hour = (value1 / 3600.0);
|
hour = (value1 / 3600.0);
|
||||||
if(hour > 12) hour = hour - 12.0;
|
if(hour > 12) hour = hour - 12.0;
|
||||||
// minute = (hour - int(hour)) * 3600.0 / 60.0; // Analog minute pointer smoth moving
|
// minute = (hour - int(hour)) * 3600.0 / 60.0; // Analog minute pointer smooth moving
|
||||||
minute = int((hour - int(hour)) * 3600.0 / 60.0); // Jumping minute pointer from minute to minute
|
minute = int((hour - int(hour)) * 3600.0 / 60.0); // Jumping minute pointer from minute to minute
|
||||||
LOG_DEBUG(GwLog::DEBUG,"... PageClock, value1: %f hour: %f minute:%f", value1, hour, minute);
|
LOG_DEBUG(GwLog::DEBUG,"... PageClock, value1: %f hour: %f minute:%f", value1, hour, minute);
|
||||||
|
|
||||||
|
|
|
@ -8,8 +8,8 @@ class PageDST810 : public Page
|
||||||
bool keylock = false; // Keylock
|
bool keylock = false; // Keylock
|
||||||
|
|
||||||
public:
|
public:
|
||||||
PageDST810(CommonData &comon){
|
PageDST810(CommonData &common){
|
||||||
comon.logger->logDebug(GwLog::LOG,"Show PageDST810");
|
common.logger->logDebug(GwLog::LOG,"Show PageDST810");
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual int handleKey(int key){
|
virtual int handleKey(int key){
|
||||||
|
|
|
@ -8,8 +8,8 @@ class PageFourValues : public Page
|
||||||
bool keylock = false; // Keylock
|
bool keylock = false; // Keylock
|
||||||
|
|
||||||
public:
|
public:
|
||||||
PageFourValues(CommonData &comon){
|
PageFourValues(CommonData &common){
|
||||||
comon.logger->logDebug(GwLog::LOG,"Show PageFourValues");
|
common.logger->logDebug(GwLog::LOG,"Show PageFourValues");
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual int handleKey(int key){
|
virtual int handleKey(int key){
|
||||||
|
|
|
@ -8,8 +8,8 @@ class PageFourValues2 : public Page
|
||||||
bool keylock = false; // Keylock
|
bool keylock = false; // Keylock
|
||||||
|
|
||||||
public:
|
public:
|
||||||
PageFourValues2(CommonData &comon){
|
PageFourValues2(CommonData &common){
|
||||||
comon.logger->logDebug(GwLog::LOG,"Show PageFourValues2");
|
common.logger->logDebug(GwLog::LOG,"Show PageFourValues2");
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual int handleKey(int key){
|
virtual int handleKey(int key){
|
||||||
|
|
|
@ -8,8 +8,8 @@ class PageThreeValues : public Page
|
||||||
bool keylock = false; // Keylock
|
bool keylock = false; // Keylock
|
||||||
|
|
||||||
public:
|
public:
|
||||||
PageThreeValues(CommonData &comon){
|
PageThreeValues(CommonData &common){
|
||||||
comon.logger->logDebug(GwLog::LOG,"Show PageThreeValue");
|
common.logger->logDebug(GwLog::LOG,"Show PageThreeValue");
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual int handleKey(int key){
|
virtual int handleKey(int key){
|
||||||
|
|
|
@ -8,8 +8,8 @@ class PageTwoValues : public Page
|
||||||
bool keylock = false; // Keylock
|
bool keylock = false; // Keylock
|
||||||
|
|
||||||
public:
|
public:
|
||||||
PageTwoValues(CommonData &comon){
|
PageTwoValues(CommonData &common){
|
||||||
comon.logger->logDebug(GwLog::LOG,"Show PageTwoValue");
|
common.logger->logDebug(GwLog::LOG,"Show PageTwoValue");
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual int handleKey(int key){
|
virtual int handleKey(int key){
|
||||||
|
|
|
@ -162,7 +162,7 @@ public:
|
||||||
getdisplay().setCursor(270, 100);
|
getdisplay().setCursor(270, 100);
|
||||||
getdisplay().print("V");
|
getdisplay().print("V");
|
||||||
|
|
||||||
// Show batery type
|
// Show battery type
|
||||||
getdisplay().setTextColor(textcolor);
|
getdisplay().setTextColor(textcolor);
|
||||||
getdisplay().setFont(&Ubuntu_Bold8pt7b);
|
getdisplay().setFont(&Ubuntu_Bold8pt7b);
|
||||||
getdisplay().setCursor(295, 100);
|
getdisplay().setCursor(295, 100);
|
||||||
|
|
Loading…
Reference in New Issue