summaryrefslogtreecommitdiff
path: root/drivers/oled/oled_driver.c
diff options
context:
space:
mode:
authorFred Silberberg <fred@silberberg.xyz>2020-09-21 18:39:50 -0700
committerGitHub <noreply@github.com>2020-09-21 18:39:50 -0700
commitc23667608c6ebb8f6d8a7f9b115144abd8794e00 (patch)
tree968d5d5da9b105a2818195934b3dde662630d956 /drivers/oled/oled_driver.c
parentdc037f139135e2321a71dda90ecee4535d363f28 (diff)
downloadqmk_firmware-c23667608c6ebb8f6d8a7f9b115144abd8794e00.tar.gz
qmk_firmware-c23667608c6ebb8f6d8a7f9b115144abd8794e00.zip
Add OLED driver function to determine if the screen is currently on (#10382)
Diffstat (limited to 'drivers/oled/oled_driver.c')
-rw-r--r--drivers/oled/oled_driver.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/oled/oled_driver.c b/drivers/oled/oled_driver.c
index 9ae737ca2d..0e15c3c4b2 100644
--- a/drivers/oled/oled_driver.c
+++ b/drivers/oled/oled_driver.c
@@ -534,6 +534,8 @@ bool oled_off(void) {
return !oled_active;
}
+bool is_oled_on(void) { return oled_active; }
+
// Set the specific 8 lines rows of the screen to scroll.
// 0 is the default for start, and 7 for end, which is the entire
// height of the screen. For 128x32 screens, rows 4-7 are not used.