Added the sleep and wakeUp methods

This commit is contained in:
Anatole SCHRAMM 2019-05-02 17:23:23 +02:00
parent 67174c1f7c
commit 50af552499
2 changed files with 12 additions and 0 deletions

View File

@ -259,6 +259,16 @@ void ScreenManager::dimDisplay(const boolean dimmed)
_displayDimmed = dimmed;
}
void ScreenManager::sleep()
{
_displayRef.sleep();
}
void ScreenManager::wakeUp()
{
_displayRef.wakeUp();
}
void ScreenManager::orientDisplay(const Orientation orientation)
{
_displayRef.setRotation(orientation);

View File

@ -17,6 +17,8 @@ class ScreenManager
void orientDisplay(const Orientation orientation);
void dimDisplay(const boolean dimmed);
void clearDisplay(const boolean bufferOnly = false);
void sleep();
void wakeUp();
Error getError() const;
const char* getErrorMessage() const;