From 755f20e27013c99972b07b05903ed6cd72823ae8 Mon Sep 17 00:00:00 2001 From: Ryan Neff Date: Fri, 22 Mar 2024 16:52:42 -0700 Subject: [PATCH] Fixed OLED rotation --- keyboards/sofle_pico/keymaps/default/keymap.c | 11 +---------- .../sofle_pico/keymaps/default_jellytitan/keymap.c | 12 ++---------- keyboards/sofle_pico/keymaps/via/keymap.c | 11 +---------- 3 files changed, 4 insertions(+), 30 deletions(-) diff --git a/keyboards/sofle_pico/keymaps/default/keymap.c b/keyboards/sofle_pico/keymaps/default/keymap.c index c356442777e..4bc6efec64d 100644 --- a/keyboards/sofle_pico/keymaps/default/keymap.c +++ b/keyboards/sofle_pico/keymaps/default/keymap.c @@ -192,16 +192,7 @@ static void render_status(void) { oled_rotation_t oled_init_user(oled_rotation_t rotation) { startup_timer = timer_read(); - - if (is_keyboard_master()) { - if (is_keyboard_left()) { - return OLED_ROTATION_90; - } else { - return OLED_ROTATION_270; - } - } else { - return OLED_ROTATION_270; - } + return OLED_ROTATION_90; } static void render_qmk_logo(void) { diff --git a/keyboards/sofle_pico/keymaps/default_jellytitan/keymap.c b/keyboards/sofle_pico/keymaps/default_jellytitan/keymap.c index 04dcf69f9a3..1b9ae3560af 100644 --- a/keyboards/sofle_pico/keymaps/default_jellytitan/keymap.c +++ b/keyboards/sofle_pico/keymaps/default_jellytitan/keymap.c @@ -208,17 +208,9 @@ uint16_t startup_timer; oled_rotation_t oled_init_user(oled_rotation_t rotation) { startup_timer = timer_read(); - - if (is_keyboard_master()) { - if (is_keyboard_left()) { - return OLED_ROTATION_90; - } else { - return OLED_ROTATION_270; - } - } else { - return OLED_ROTATION_90; - } + return OLED_ROTATION_90; } + static void render_qmk_logo(void) { static const char PROGMEM qmk_logo[] = {// 'qmk_via_OLED_128x64', 64x128px 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf0, 0xf8, 0xf8, 0x00, 0x00, 0x00, 0xf0, 0xf8, 0xf8, 0x00, 0x00, 0x00, 0xf0, 0xf8, 0xf8, 0x00, 0x00, 0x00, 0xf0, 0xf8, 0xf8, 0x00, 0x00, 0x00, 0xf0, 0xf8, 0xf8, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf0, 0xf8, 0xfc, 0xfe, 0xfe, 0xfe, 0xfe, 0xff, 0xff, 0xff, 0xfe, 0xfe, 0xfe, 0xff, 0xff, 0xff, 0xfe, 0xfe, 0xfe, 0xff, 0xff, 0xff, 0xfe, 0xfe, 0xfe, 0xff, 0xff, 0xff, 0xfe, 0xfe, 0xfe, 0xff, 0xff, 0xff, 0xfe, 0xfe, 0xfe, 0xfe, 0xfc, 0xf8, 0xf0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc7, 0xc7, 0xc7, 0xc7, 0xc7, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, diff --git a/keyboards/sofle_pico/keymaps/via/keymap.c b/keyboards/sofle_pico/keymaps/via/keymap.c index efa1f3ec43f..4bc6efec64d 100644 --- a/keyboards/sofle_pico/keymaps/via/keymap.c +++ b/keyboards/sofle_pico/keymaps/via/keymap.c @@ -192,16 +192,7 @@ static void render_status(void) { oled_rotation_t oled_init_user(oled_rotation_t rotation) { startup_timer = timer_read(); - - if (is_keyboard_master()) { - if (is_keyboard_left()) { - return OLED_ROTATION_90; - } else { - return OLED_ROTATION_270; - } - } else { - return OLED_ROTATION_90; - } + return OLED_ROTATION_90; } static void render_qmk_logo(void) {