Add init dsplay before full refresh
This commit is contained in:
		
							parent
							
								
									688c123f29
								
							
						
					
					
						commit
						393f71311c
					
				| 
						 | 
				
			
			@ -546,13 +546,15 @@ void OBP60Task(GwApi *api){
 | 
			
		|||
            if(millis() > starttime4 + 4000 && delayedDisplayUpdate == true){
 | 
			
		||||
                starttime1 = millis();
 | 
			
		||||
                starttime2 = millis();
 | 
			
		||||
                getdisplay().init(115200);       // Display init
 | 
			
		||||
                getdisplay().setFullWindow();    // Set full update
 | 
			
		||||
                getdisplay().firstPage();
 | 
			
		||||
                if(fastrefresh == "false"){
 | 
			
		||||
                    getdisplay().fillScreen(pixelcolor);// Clear display
 | 
			
		||||
                    getdisplay().nextPage();            // Full update
 | 
			
		||||
                    getdisplay().fillScreen(bgcolor);   // Clear display
 | 
			
		||||
                    getdisplay().nextPage();            // Full update
 | 
			
		||||
                }
 | 
			
		||||
                getdisplay().nextPage();         // Full update
 | 
			
		||||
                delayedDisplayUpdate = false;
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -562,26 +564,30 @@ void OBP60Task(GwApi *api){
 | 
			
		|||
                starttime1 = millis();
 | 
			
		||||
                starttime2 = millis();
 | 
			
		||||
                LOG_DEBUG(GwLog::DEBUG,"E-Ink full refresh first 5 min");
 | 
			
		||||
                getdisplay().init(115200);       // Display init
 | 
			
		||||
                getdisplay().setFullWindow();    // Set full update
 | 
			
		||||
                getdisplay().firstPage();
 | 
			
		||||
                if(fastrefresh == "false"){
 | 
			
		||||
                    getdisplay().fillScreen(pixelcolor);// Clear display
 | 
			
		||||
                    getdisplay().nextPage();            // Full update
 | 
			
		||||
                    getdisplay().fillScreen(bgcolor);   // Clear display
 | 
			
		||||
                    getdisplay().nextPage();            // Full update
 | 
			
		||||
                }
 | 
			
		||||
                getdisplay().nextPage();         // Full update
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
            // Subtask E-Ink full refresh
 | 
			
		||||
            if(millis() > starttime2 + fullrefreshtime * 60 * 1000){
 | 
			
		||||
                starttime2 = millis();
 | 
			
		||||
                LOG_DEBUG(GwLog::DEBUG,"E-Ink full refresh");
 | 
			
		||||
                getdisplay().init(115200);       // Display init
 | 
			
		||||
                getdisplay().setFullWindow();    // Set full update
 | 
			
		||||
                getdisplay().firstPage();
 | 
			
		||||
                if(fastrefresh == "false"){
 | 
			
		||||
                    getdisplay().fillScreen(pixelcolor);// Clear display
 | 
			
		||||
                    getdisplay().nextPage();            // Full update
 | 
			
		||||
                    getdisplay().fillScreen(bgcolor);   // Clear display
 | 
			
		||||
                    getdisplay().nextPage();            // Full update
 | 
			
		||||
                }
 | 
			
		||||
                getdisplay().nextPage();         // Full update
 | 
			
		||||
            }
 | 
			
		||||
            
 | 
			
		||||
            // Refresh display data all 1s
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue