Add OLED driver function to determine if the screen is currently on (#10382)

This commit is contained in:
Fred Silberberg
2020-09-21 18:39:50 -07:00
committed by Drashna Jael're
parent 63d73fdb02
commit 10402a4f09
2 changed files with 6 additions and 0 deletions
+2
View File
@@ -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.