From 50af552499aac941c3990005373481ec549a7e3c Mon Sep 17 00:00:00 2001 From: Anatole SCHRAMM Date: Thu, 2 May 2019 17:23:23 +0200 Subject: [PATCH] Added the sleep and wakeUp methods --- src/app/ScreenManager.cpp | 10 ++++++++++ src/app/ScreenManager.h | 2 ++ 2 files changed, 12 insertions(+) diff --git a/src/app/ScreenManager.cpp b/src/app/ScreenManager.cpp index aba2495..733683e 100644 --- a/src/app/ScreenManager.cpp +++ b/src/app/ScreenManager.cpp @@ -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); diff --git a/src/app/ScreenManager.h b/src/app/ScreenManager.h index 8d34d78..5e73f96 100644 --- a/src/app/ScreenManager.h +++ b/src/app/ScreenManager.h @@ -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;