Fixed OLED rotation

This commit is contained in:
Ryan Neff 2024-03-22 16:52:42 -07:00
parent dcbfbed919
commit 755f20e270
3 changed files with 4 additions and 30 deletions

View File

@ -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) {

View File

@ -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,

View File

@ -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) {