Browse Source

[Core] Add `is_oled_scrolling` (#14305)

pull/14320/head 0.14.7
JayceFayne 2 years ago
committed by GitHub
parent
commit
767f2c0284
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 0 deletions
  1. +4
    -0
      docs/feature_oled_driver.md
  2. +4
    -0
      drivers/oled/oled_driver.h
  3. +2
    -0
      drivers/oled/ssd1306_sh1106.c

+ 4
- 0
docs/feature_oled_driver.md View File

@ -356,6 +356,10 @@ bool oled_scroll_left(void);
// Returns true if the screen was not scrolling or stops scrolling
bool oled_scroll_off(void);
// Returns true if the oled is currently scrolling, false if it is
// not
bool is_oled_scrolling(void);
// Inverts the display
// Returns true if the screen was or is inverted
bool oled_invert(bool invert);


+ 4
- 0
drivers/oled/oled_driver.h View File

@ -313,6 +313,10 @@ bool oled_scroll_left(void);
// Returns true if the screen was not scrolling or stops scrolling
bool oled_scroll_off(void);
// Returns true if the oled is currently scrolling, false if it is
// not
bool is_oled_scrolling(void);
// Inverts the display
// Returns true if the screen was or is inverted
bool oled_invert(bool invert);


+ 2
- 0
drivers/oled/ssd1306_sh1106.c View File

@ -692,6 +692,8 @@ bool oled_scroll_off(void) {
return !oled_scrolling;
}
bool is_oled_scrolling(void) { return oled_scrolling; }
bool oled_invert(bool invert) {
if (!oled_initialized) {
return oled_inverted;


Loading…
Cancel
Save