aboutsummaryrefslogtreecommitdiff
path: root/drivers/oled/oled_driver.h
diff options
context:
space:
mode:
authorbrickbots <rich@brickbots.com>2020-03-14 14:04:34 -0700
committerGitHub <noreply@github.com>2020-03-14 21:04:34 +0000
commitb5be96f8bb65d526a744795e8e3777d5ed47a034 (patch)
treed888e7c82e57b947407e26b1cf27ce565a9c4810 /drivers/oled/oled_driver.h
parent7aa21cc287cd92cbfb8f3f7efce3a16058292349 (diff)
downloadqmk_firmware-b5be96f8bb65d526a744795e8e3777d5ed47a034.tar.gz
qmk_firmware-b5be96f8bb65d526a744795e8e3777d5ed47a034.zip
Adding OLED scroll setup functions (#8386)
* Adding scroll setup functions: * Clarifying values stored in oled_scroll_speed
Diffstat (limited to 'drivers/oled/oled_driver.h')
-rw-r--r--drivers/oled/oled_driver.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/oled/oled_driver.h b/drivers/oled/oled_driver.h
index 6d1cee9b7..3e5a5bcab 100644
--- a/drivers/oled/oled_driver.h
+++ b/drivers/oled/oled_driver.h
@@ -246,6 +246,18 @@ void oled_task(void);
246// Called at the start of oled_task, weak function overridable by the user 246// Called at the start of oled_task, weak function overridable by the user
247void oled_task_user(void); 247void oled_task_user(void);
248 248
249// Set the specific 8 lines rows of the screen to scroll.
250// 0 is the default for start, and 7 for end, which is the entire
251// height of the screen. For 128x32 screens, rows 4-7 are not used.
252void oled_scroll_set_area(uint8_t start_line, uint8_t end_line);
253
254// Sets scroll speed, 0-7, fastest to slowest. Default is three.
255// Does not take effect until scrolling is either started or restarted
256// the ssd1306 supports 8 speeds with the delay
257// listed below betwen each frame of the scrolling effect
258// 0=2, 1=3, 2=4, 3=5, 4=25, 5=64, 6=128, 7=256
259void oled_scroll_set_speed(uint8_t speed);
260
249// Scrolls the entire display right 261// Scrolls the entire display right
250// Returns true if the screen was scrolling or starts scrolling 262// Returns true if the screen was scrolling or starts scrolling
251// NOTE: display contents cannot be changed while scrolling 263// NOTE: display contents cannot be changed while scrolling