Added the sleep and wakeUp methods
This commit is contained in:
		
							parent
							
								
									67174c1f7c
								
							
						
					
					
						commit
						50af552499
					
				@ -259,6 +259,16 @@ void ScreenManager::dimDisplay(const boolean dimmed)
 | 
				
			|||||||
  _displayDimmed = dimmed;
 | 
					  _displayDimmed = dimmed;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					void ScreenManager::sleep()
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					  _displayRef.sleep();
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					void ScreenManager::wakeUp()
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					  _displayRef.wakeUp();
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
void ScreenManager::orientDisplay(const Orientation orientation)
 | 
					void ScreenManager::orientDisplay(const Orientation orientation)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
  _displayRef.setRotation(orientation);
 | 
					  _displayRef.setRotation(orientation);
 | 
				
			||||||
 | 
				
			|||||||
@ -17,6 +17,8 @@ class ScreenManager
 | 
				
			|||||||
    void orientDisplay(const Orientation orientation);
 | 
					    void orientDisplay(const Orientation orientation);
 | 
				
			||||||
    void dimDisplay(const boolean dimmed);
 | 
					    void dimDisplay(const boolean dimmed);
 | 
				
			||||||
    void clearDisplay(const boolean bufferOnly = false);
 | 
					    void clearDisplay(const boolean bufferOnly = false);
 | 
				
			||||||
 | 
					    void sleep();
 | 
				
			||||||
 | 
					    void wakeUp();
 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
    Error getError() const;
 | 
					    Error getError() const;
 | 
				
			||||||
    const char* getErrorMessage() const;
 | 
					    const char* getErrorMessage() const;
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user