summaryrefslogtreecommitdiff
path: root/drivers/oled/oled_driver.h
diff options
context:
space:
mode:
authorFred Silberberg <fred@silberberg.xyz>2020-09-21 18:39:50 -0700
committerDrashna Jael're <drashna@live.com>2021-01-12 22:43:29 -0800
commit10402a4f097a4c51ef146c15368ddb1f1bfa49d9 (patch)
tree93a1ac87138f3c9b51d22ad1533d377390bc06c5 /drivers/oled/oled_driver.h
parent63d73fdb020400218817302026cbec2313c7c92a (diff)
Add OLED driver function to determine if the screen is currently on (#10382)
Diffstat (limited to 'drivers/oled/oled_driver.h')
-rw-r--r--drivers/oled/oled_driver.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/oled/oled_driver.h b/drivers/oled/oled_driver.h
index 2336d800cb..2aa0f7201f 100644
--- a/drivers/oled/oled_driver.h
+++ b/drivers/oled/oled_driver.h
@@ -257,6 +257,10 @@ bool oled_on(void);
// Returns true if the screen was off or turns off
bool oled_off(void);
+// Returns true if the oled is currently on, false if it is
+// not
+bool is_oled_on(void);
+
// Basically it's oled_render, but with timeout management and oled_task_user calling!
void oled_task(void);