diff options
author | Drashna Jaelre <drashna@live.com> | 2021-11-01 15:42:50 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-02 09:42:50 +1100 |
commit | 9d235d4fc5c34f372b0c393f41686b5ef4f8dc13 (patch) | |
tree | c155fae4cd6043c3c32aa185eb05c5d1a4a5700e /drivers/oled/oled_driver.h | |
parent | f775da96b17ceec66bac279434325b4da5cb9467 (diff) | |
download | qmk_firmware-9d235d4fc5c34f372b0c393f41686b5ef4f8dc13.tar.gz qmk_firmware-9d235d4fc5c34f372b0c393f41686b5ef4f8dc13.zip |
[Core] Change OLED task function to be boolean (#14864)
* [Core] Add kb level callbacks to OLED driver
* Update keyboards and keymaps
* Update docs
* Update userspace configs
* Add fix for my keymap ...
* update lefty
Diffstat (limited to 'drivers/oled/oled_driver.h')
-rw-r--r-- | drivers/oled/oled_driver.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/oled/oled_driver.h b/drivers/oled/oled_driver.h index 13b73ede9..3b56d370d 100644 --- a/drivers/oled/oled_driver.h +++ b/drivers/oled/oled_driver.h | |||
@@ -190,6 +190,7 @@ bool oled_init(oled_rotation_t rotation); | |||
190 | // Called at the start of oled_init, weak function overridable by the user | 190 | // Called at the start of oled_init, weak function overridable by the user |
191 | // rotation - the value passed into oled_init | 191 | // rotation - the value passed into oled_init |
192 | // Return new oled_rotation_t if you want to override default rotation | 192 | // Return new oled_rotation_t if you want to override default rotation |
193 | oled_rotation_t oled_init_kb(oled_rotation_t rotation); | ||
193 | oled_rotation_t oled_init_user(oled_rotation_t rotation); | 194 | oled_rotation_t oled_init_user(oled_rotation_t rotation); |
194 | 195 | ||
195 | // Clears the display buffer, resets cursor position to 0, and sets the buffer to dirty for rendering | 196 | // Clears the display buffer, resets cursor position to 0, and sets the buffer to dirty for rendering |
@@ -285,7 +286,8 @@ uint8_t oled_get_brightness(void); | |||
285 | void oled_task(void); | 286 | void oled_task(void); |
286 | 287 | ||
287 | // Called at the start of oled_task, weak function overridable by the user | 288 | // Called at the start of oled_task, weak function overridable by the user |
288 | void oled_task_user(void); | 289 | bool oled_task_kb(void); |
290 | bool oled_task_user(void); | ||
289 | 291 | ||
290 | // Set the specific 8 lines rows of the screen to scroll. | 292 | // Set the specific 8 lines rows of the screen to scroll. |
291 | // 0 is the default for start, and 7 for end, which is the entire | 293 | // 0 is the default for start, and 7 for end, which is the entire |