diff options
-rw-r--r-- | docs/feature_oled_driver.md | 4 | ||||
-rw-r--r-- | drivers/oled/oled_driver.h | 4 | ||||
-rw-r--r-- | drivers/oled/ssd1306_sh1106.c | 2 |
3 files changed, 10 insertions, 0 deletions
diff --git a/docs/feature_oled_driver.md b/docs/feature_oled_driver.md index c97843cfb..49a3f0b3e 100644 --- a/docs/feature_oled_driver.md +++ b/docs/feature_oled_driver.md | |||
@@ -356,6 +356,10 @@ bool oled_scroll_left(void); | |||
356 | // Returns true if the screen was not scrolling or stops scrolling | 356 | // Returns true if the screen was not scrolling or stops scrolling |
357 | bool oled_scroll_off(void); | 357 | bool oled_scroll_off(void); |
358 | 358 | ||
359 | // Returns true if the oled is currently scrolling, false if it is | ||
360 | // not | ||
361 | bool is_oled_scrolling(void); | ||
362 | |||
359 | // Inverts the display | 363 | // Inverts the display |
360 | // Returns true if the screen was or is inverted | 364 | // Returns true if the screen was or is inverted |
361 | bool oled_invert(bool invert); | 365 | bool oled_invert(bool invert); |
diff --git a/drivers/oled/oled_driver.h b/drivers/oled/oled_driver.h index fc68f0ec9..13b73ede9 100644 --- a/drivers/oled/oled_driver.h +++ b/drivers/oled/oled_driver.h | |||
@@ -313,6 +313,10 @@ bool oled_scroll_left(void); | |||
313 | // Returns true if the screen was not scrolling or stops scrolling | 313 | // Returns true if the screen was not scrolling or stops scrolling |
314 | bool oled_scroll_off(void); | 314 | bool oled_scroll_off(void); |
315 | 315 | ||
316 | // Returns true if the oled is currently scrolling, false if it is | ||
317 | // not | ||
318 | bool is_oled_scrolling(void); | ||
319 | |||
316 | // Inverts the display | 320 | // Inverts the display |
317 | // Returns true if the screen was or is inverted | 321 | // Returns true if the screen was or is inverted |
318 | bool oled_invert(bool invert); | 322 | bool oled_invert(bool invert); |
diff --git a/drivers/oled/ssd1306_sh1106.c b/drivers/oled/ssd1306_sh1106.c index 7d4197890..e9049438f 100644 --- a/drivers/oled/ssd1306_sh1106.c +++ b/drivers/oled/ssd1306_sh1106.c | |||
@@ -692,6 +692,8 @@ bool oled_scroll_off(void) { | |||
692 | return !oled_scrolling; | 692 | return !oled_scrolling; |
693 | } | 693 | } |
694 | 694 | ||
695 | bool is_oled_scrolling(void) { return oled_scrolling; } | ||
696 | |||
695 | bool oled_invert(bool invert) { | 697 | bool oled_invert(bool invert) { |
696 | if (!oled_initialized) { | 698 | if (!oled_initialized) { |
697 | return oled_inverted; | 699 | return oled_inverted; |