Modify display refresh (fix multible refresh)
This commit is contained in:
parent
2659b1cc48
commit
619a20e4c7
|
@ -539,6 +539,8 @@ void OBP60Task(GwApi *api){
|
||||||
|
|
||||||
// Full display update afer a new selected page and 4s wait time
|
// Full display update afer a new selected page and 4s wait time
|
||||||
if(millis() > starttime4 + 4000 && delayedDisplayUpdate == true){
|
if(millis() > starttime4 + 4000 && delayedDisplayUpdate == true){
|
||||||
|
starttime1 = millis();
|
||||||
|
starttime2 = millis();
|
||||||
getdisplay().setFullWindow(); // Set full update
|
getdisplay().setFullWindow(); // Set full update
|
||||||
if(FAST_FULL_UPDATE == false){
|
if(FAST_FULL_UPDATE == false){
|
||||||
getdisplay().fillScreen(pixelcolor);// Clear display
|
getdisplay().fillScreen(pixelcolor);// Clear display
|
||||||
|
@ -553,6 +555,7 @@ void OBP60Task(GwApi *api){
|
||||||
// This needs for a better display contrast after power on in cold or warm environments
|
// This needs for a better display contrast after power on in cold or warm environments
|
||||||
if(millis() < firststart + (5 * 60 * 1000) && millis() > starttime1 + (60 * 1000)){
|
if(millis() < firststart + (5 * 60 * 1000) && millis() > starttime1 + (60 * 1000)){
|
||||||
starttime1 = millis();
|
starttime1 = millis();
|
||||||
|
starttime2 = millis();
|
||||||
LOG_DEBUG(GwLog::DEBUG,"E-Ink full refresh first 5 min");
|
LOG_DEBUG(GwLog::DEBUG,"E-Ink full refresh first 5 min");
|
||||||
getdisplay().setFullWindow(); // Set full update
|
getdisplay().setFullWindow(); // Set full update
|
||||||
if(FAST_FULL_UPDATE == false){
|
if(FAST_FULL_UPDATE == false){
|
||||||
|
|
|
@ -25,7 +25,7 @@ lib_deps =
|
||||||
blemasle/MCP23017@2.0.0
|
blemasle/MCP23017@2.0.0
|
||||||
adafruit/Adafruit BusIO@1.5.0
|
adafruit/Adafruit BusIO@1.5.0
|
||||||
adafruit/Adafruit GFX Library@1.11.9
|
adafruit/Adafruit GFX Library@1.11.9
|
||||||
zinggjm/GxEPD2@1.5.6
|
zinggjm/GxEPD2@1.5.8
|
||||||
#https://github.com/ZinggJM/GxEPD2
|
#https://github.com/ZinggJM/GxEPD2
|
||||||
sstaub/Ticker@4.4.0
|
sstaub/Ticker@4.4.0
|
||||||
adafruit/Adafruit BMP280 Library@2.6.2
|
adafruit/Adafruit BMP280 Library@2.6.2
|
||||||
|
|
Loading…
Reference in New Issue