summaryrefslogtreecommitdiff
path: root/drivers/oled/oled_driver.c
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2021-06-17 17:14:23 +1000
committerGitHub <noreply@github.com>2021-06-17 17:14:23 +1000
commit2f08a343948c6db3c67505f8fca5fdbfed41831b (patch)
tree5d62c1a5229107ce9a20a230375f508905564629 /drivers/oled/oled_driver.c
parenta9c6adb083556ae485dbf1e9f86ad615e32a8b7a (diff)
downloadqmk_firmware-2f08a343948c6db3c67505f8fca5fdbfed41831b.tar.gz
qmk_firmware-2f08a343948c6db3c67505f8fca5fdbfed41831b.zip
OLED driver tweaks (#13215)
Diffstat (limited to 'drivers/oled/oled_driver.c')
-rw-r--r--drivers/oled/oled_driver.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/oled/oled_driver.c b/drivers/oled/oled_driver.c
index 53bdc196dc..8e5ed5f070 100644
--- a/drivers/oled/oled_driver.c
+++ b/drivers/oled/oled_driver.c
@@ -115,7 +115,7 @@ bool oled_initialized = false;
bool oled_active = false;
bool oled_scrolling = false;
uint8_t oled_brightness = OLED_BRIGHTNESS;
-uint8_t oled_rotation = 0;
+oled_rotation_t oled_rotation = 0;
uint8_t oled_rotation_width = 0;
uint8_t oled_scroll_speed = 0; // this holds the speed after being remapped to ssd1306 internal values
uint8_t oled_scroll_start = 0;
@@ -158,7 +158,7 @@ static void InvertCharacter(uint8_t *cursor) {
}
}
-bool oled_init(uint8_t rotation) {
+bool oled_init(oled_rotation_t rotation) {
#if defined(USE_I2C) && defined(SPLIT_KEYBOARD)
if (!is_keyboard_master()) {
return true;